Ready to get started?Download WordPress


Filtering a post's tags (5 posts)

  1. walterego
    Posted 6 years ago #

    Hey guys,

    does anybody know if there is a way to filter the tags that wordpress returns when calling the_tags or get_the_tags. I would like to add tags to the output of those functions.

    Any thoughts?

  2. walterego
    Posted 6 years ago #

    Hmm, it seems a filter for get_the_tags does exist, I just don't have a clue of how to work with it.

  3. walterego
    Posted 6 years ago #

    Anybody have any idea how to add anything to what's returned by the_tags or get_the_tags?

  4. Kafkaesqui

    Posted 6 years ago #

    Depends on what you mean by "how to add anything." You might look at how I handle it through this plugin:


    Beyond that, a detailed request can only help.

  5. walterego
    Posted 6 years ago #

    Well, this is probably a good plugin to look into at first. I didn´t asked the question right in the first place. I don´t want to add anything to the array of tags (assuming it's an array), i want to add certain classes to it. Thanks for the suggestion!

Topic Closed

This topic has been closed to new replies.

About this Topic