Site logo

Archived topic

Hidden tags

5 replies · Started by Horst on January 6, 2021

Viewing posts 1–6 of 6

Hi there,

with <? php the_tags ('', '', ''); ?> I output the tags in the sidebar. (https://bit.ly/2JTJ9A2 - see bottom left: zan1). With 3 different tags I control different designs (elements). How can I prevent these 3 tags from being output? Unfortunately I didn't find anything for it in the forum.

Thanks for your help. horst

Hi there,

not sure i understand - do you not want to display any of the Tags in sidebar ? And only use Tags for Element Display Rules ?

Hello David,

no, I only use 3 tags for control (elements). I only want to hide these tags in this ad, not the others.

many Greetings
horst

Ok, so the_tags() function isn't filterable.
But the get_the_tag_list() function is - Tom provides a filter for that function here:

https://generatepress.com/forums/topic/exclude-a-specific-tag-from-the-output-of-the-tag-list/#post-1071610

Alternatively what i do is to register a Custom Taxonomy ( Categories or Tags ) for my display rule controls. Here's an example of that:

https://generatepress.com/forums/topic/header-layout-control-for-client/#post-1421567

Hello David,

many thanks. That works wonderfully.

many Greetings
Horst

Glad to hear that

This archived topic is closed to new replies.