WordPress.org

Support

Support » How-To and Troubleshooting » category_name actually taking slug and not category name itself?

category_name actually taking slug and not category name itself?

  • Hi all,

    I have a query that should have pulled posts from the category name

    query_posts('category_name=$categoryname&showposts=10');

    something like this and $categoryname is pulled via theme options. It was working okay until I changed the slug to something other than default (which is usually same as the name).

    So, I believe, its actually refering from slug and not name. How do I pull it from the category name ?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘category_name actually taking slug and not category name itself?’ is closed to new replies.
Skip to toolbar