Answer the question
In order to leave comments, you need to log in
Advanced Custom Fields how to display the value of an additional field in a category?
Installed the Advanced Custom Fields plugin on WP.
Created a new field for creating/editing categories.
Anyway, what a task. I need to create a field when creating/editing a category. A field with another heading H1. If this field is empty, then the standard title is used, and if the new field is filled with data, then the category title = data of the new field.
I can't display the field values in any way, I use the following function:
<?php
the_field('h1_caption', $term);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question