WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to display the category slug and not the category name?

[Resolved] How to display the category slug and not the category name?

  • TransPersonal
    Member

    @transpersonal

    I am trying to call the category slug but using this: <?php single_cat_title(); ?> returns the category name. How can I call the slug instead?

    Also how can I call the slug for tags?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to display the category slug and not the category name?’ is closed to new replies.