This is the php code I use to get my custom field on category page:
<p><?php the_field(‘author’, ‘category_4’); ?></p>
But this displays the value of category_ID_4 on all my categories.
How should I do to display the value of each corresponding category_ID ?
Many thanks in advance!
- The topic ‘custom field on category page’ is closed to new replies.