WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Find the term_ids for tags (6 posts)

  1. jimmiejo
    Member
    Posted 6 years ago #

    I'm trying to figure out how and where to find the term_ids for tags so that I can use the following function:

    <?php wp_tag_cloud('smallest=8&largest=22&number=30&orderby=count&include=???'); ?>

    The issue comes in knowing the term ids to include for tags, which also would come in handy for creating custom tag-13.php templates, for example.

    Finding the ids for categories, users, etc... is as easy as looking in the admin, but where would I go about finding them for tags?

  2. MichaelH
    Member
    Posted 6 years ago #

    Using phpMyAdmin, look at the term_id in the wp_term_taxonomy table.

  3. jimmiejo
    Member
    Posted 6 years ago #

    I managed to find them in my wp_terms database table. The question is now, is there not an easier way to find the term ids for tags? Is anything planned for 2.5?

  4. jimmiejo
    Member
    Posted 6 years ago #

    You just beat me by a few seconds Michael. :)

  5. MichaelH
    Member
    Posted 6 years ago #

    Eventually there'll be some tag management features. Here's at least one trac changeset that's been committed.

    http://trac.wordpress.org/changeset/6542

  6. jimmiejo
    Member
    Posted 6 years ago #

    Great!

Topic Closed

This topic has been closed to new replies.

About this Topic