WordPress.org

Ready to get started?Download WordPress

Forums

Find the Tag ID (3 posts)

  1. DoorFrame
    Member
    Posted 6 years ago #

    I'm trying to find a simple way of finding tag IDs. I'm not a programmer and I don't want to have to query the database to do this. Is there a simple location than I can visually look to find a list of Tag IDs?

    Thanks a lot.

  2. DoorFrame
    Member
    Posted 6 years ago #

    I found a roundabout way to do it for non-programmers. If you set up a tag cloud, the source code will indicate the ID numbers of each item in the cloud in the class name, such as "class='tag-link-27'."

  3. Kafkaesqui

    Posted 6 years ago #

    get_the_tags() can also be used to display the term_id of a tag:

    http://codex.wordpress.org/Template_Tags/get_the_tags

    If you follow the example code on the page, this:

    $tag->term_id

    holds the ID for a tag.

Topic Closed

This topic has been closed to new replies.

About this Topic