[Support request] Hidden tags

Home Forums Support [Support request] Hidden tags

Home Forums Support Hidden tags

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1608207
    Horst

    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

    #1608251
    David
    Staff
    Customer Support

    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 ?

    #1608254
    Horst

    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

    #1608264
    David
    Staff
    Customer Support

    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

    #1608358
    Horst

    Hello David,

    many thanks. That works wonderfully.

    many Greetings
    Horst

    #1608376
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.