WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Jeff
    Member
    Posted 7 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 7 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 7 years ago #

    Thanks very much. It's looking interesting.

  4. Jeff
    Member
    Posted 7 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