-
Hi
I want to customize the title of a custom post type single article.
There is a taxonomy called taxo_personnes_fonctionfor example in the custom content.php file, I have this code
$terms = get_the_terms($post->ID, ‘taxo_personnes_fonction’);
it works well, the output is an array of terms.I want to use in the title something like %customterm(taxonomy-name)% but it doesn’t work (empty result)
I have tested %customterm(taxo_personnes_fonction)% and %customterm(‘taxo_personnes_fonction’)% and %customterm_desc(‘taxo_personnes_fonction’)%Thank you
- This topic was modified 5 years ago by . Reason: added Sensitive Data
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The ticket ‘%customterm(taxonomy-name)% in custom title doesn’t work’ is closed to new replies.