• Resolved andrewjmonks

    (@andrewjmonks)


    I’m looking for a function that’s the same as single_cat_title() but which returns the category’s slug rather than title.

    I’d be using it on category.php, in template tags outside the loop.

    Does any such function exist? I’ve tried single_cat_slug() to no avail. If not, is there another way of getting the slug?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘single_cat_slug()?’ is closed to new replies.