Displaying Custom Field value of a Term from Custom Taxonomy
-
Here is my code
<?php if (is_tax()) { ?> <h1 class="archive_title h2"> <?php single_cat_title(); ?> Overview <span><?php the_field('sub_heading')?></span> </h1> <?php echo the_field( 'sub_heading'); ?> <div class="category-desc"> <?php echo category_description( get_category_by_slug( 'category-slug')->term_id ); ?></div> <?php } ?>
My Custom field
sub_heading
, I am trying to display the value but unfortunately not working,Here is the archive page where I am using code.
Thanks
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying Custom Field value of a Term from Custom Taxonomy’ is closed to new replies.