Support

Account

Home Forums General Issues Order by (sort) taxonmy fields using taxonmy custom field value Reply To: Order by (sort) taxonmy fields using taxonmy custom field value

  • Hi @bcsplsanjay,

    Thanks for the post.

    Since you are using single value selection(Radio buttons) in your taxonomy, you do not need a foreach loop.

    The code will look like so:

    <?php 
    
    $term = get_field('taxonomy_field_name');
    
    if( $term ): ?>
    
    	<h2><?php echo $term->name; ?></h2>
    	<p><?php echo $term->description; ?></p>
    
    <?php endif; ?>