• I’m using the wp_dropdown codes (from the WP docs) in my sidebar theme and wondering why it results in the url displaying the category number and not the category name. Clicking on the category name under the post (posted in …) displays the category name in the url (which I prefer), but the using the wp dropdown menu displays the category number in the url (like cat=5). Would one of the arguments do it for me?

Viewing 1 replies (of 1 total)
  • Thread Starter atdblog

    (@atdblog)

    Actually, I’ve discovered that when using the wp_dropdown functions to manually insert dropdowns in my theme, the url contains the “cat”, “page_id”, and “author” labels followed by an equal sign and an id number. But when using the dropdowns provided with the sidebar widgets (via the Admin panel), those selections display the url I prefer, with “category” spelled-out in the url followed by the category name (not an id number). So what’s the difference between the dropdowns, and how do I get the code to spell-out the names in the url?

    Fyi: Using lists instead of dropdowns also provides the spelled-out names in the url, like I want. But I prefer to use dropdowns if this can be resolved.

Viewing 1 replies (of 1 total)
  • The topic ‘How to display category name in url not cat number’ is closed to new replies.