WordPress.org

Ready to get started?Download WordPress

Forums

Get a list of post_tags that are used by posts in a particular category (4 posts)

  1. Jeff
    Member
    Posted 5 years ago #

    I'd like to be able to get a list of the post_tags that are 'used' by posts in a category.

    I've searched on Google for variations of this question and not found anything so far.

    I'm wondering if anyone has produced any code to do this already.

    I'd be very grateful if it has been done :-)

  2. MichaelH
    Member
    Posted 5 years ago #

    Well there's a plugin that might have some useful info

    so that if it is used on a category archive, it shows only the tags within that category

    http://wordpress.org/extend/plugins/tdo-tag-fixes/

  3. Jeff
    Member
    Posted 5 years ago #

    Thanks very much. It's looking interesting.

  4. Jeff
    Member
    Posted 5 years ago #

    I happened across another plugin Simple Tags http://wordpress.org/extend/plugins/simple-tags that does exactly what I want with the function

    st_get_tag_cloud('cloud_selection=count-desc&cloud_sort=count-desc&format=array&number=0&xformat=%tag_name%&category='.$cat_id)

Topic Closed

This topic has been closed to new replies.

About this Topic