Tagged: display custom taxonomies
First, I would like to congratulate you on the theme you have developed, and thank you for the support.
I have a CPT called ‘Journal articles’ and it has several taxonomies ‘Author’, ‘Section’, ‘Descriptor’. (‘Author’ is the one who writes the article, not the one who publishes it.)
I need to be able to display this metadata individually, in diferent parts of the page. But when I choose Metadata Element and select “categories”, I get all the metadata together.
The site is still under development on a local server, so I can’t give you access to it.
I hope I have explained myself well.
Thanks for your help
Mike, Thanks for your answer. I think i didn´t explain well. I want to show my custom taxonomies. But if i select categories i have all of them together. Is there any way to get only one custom tax
.
And i have another question.
How to show a shortecode in the excerpt. I want to display a variable in the excerpt
Thanks for your help
Hi,
No if your post has multiple categories that will show.
as for shortecode in the excerpt it may depend on the element but often adding these to your child theme functions.php works
add_filter('get_the_excerpt', 'do_shortcode');
add_filter( 'the_excerpt', 'shortcode_unautop');
add_filter( 'the_excerpt', 'do_shortcode');
add_filter('widget_text', 'do_shortcode');
add_filter( 'term_description', 'do_shortcode' );
Best regards,
Mike