WordPress.org

Ready to get started?Download WordPress

Forums

Post Sorting Reloaded
[resolved] is_tag must pass by the slug, not the tag (2 posts)

  1. chenster
    Member
    Posted 2 years ago #

    When I use to sort posts by tag using is_tag, I have to use the slug name rather name the tag name.

    for instance:
    tag: "Getting started"
    slug "getting-started"

    is_tag("Getting started") doesn't work.
    is_tag("getting-started") works.

    RC

    http://wordpress.org/extend/plugins/post-sorting-reloaded/

  2. gab.ro
    Member
    Plugin Author

    Posted 2 years ago #

    Yeah, just like it says here:

    is_tag($slug)

    where $slug is the tag slug

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic