Archived topic
remove custom taxonomy href from header element template tag
3 replies · Started by Drew on January 6, 2021
Hi guys, is there a straightforward way to remove the href link from a custom taxonomy used in a header element?
Here's what I have:
<h1>
{{post_title}}, {{post_terms.team-member-category}}
</h1>
Output: http://lakesareamusic.wpengine.com/people/suliman-tekalli/ - I'm trying to remove the link from the instrument name, which is the custom taxonomy (.team-member-category). If it matters, this is also part of a custom post type .single-team-member.
Many thanks!
Hi there,
see Tom's topic here:
https://generatepress.com/forums/topic/help-with-template-tags-for-custom-post-type/#post-1540350
There we go, I was looking at it from a property based solution but this is great. Thanks so much and I hope everyone is having a great new year!
Glad to be of help