[wp-trac] [WordPress Trac] #28492: Categories Widget Dropdown Issue
WordPress Trac
noreply at wordpress.org
Mon Jun 9 19:08:11 UTC 2014
#28492: Categories Widget Dropdown Issue
---------------------------+------------------------------
Reporter: selinawdesign | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by westonruter):
Thanks for the report, selinawdesign.
I notice when I click Member Benefits from the list, I am taken to a
pretty URL: http://selinawdesign.com/wp/category/news/memberbenefits/
However, when I select Member Benefits from the dropdown, I am taken to a
URL with a `cat` query parameter: http://selinawdesign.com/wp/?cat=59
WordPress is supposed to be automatically redirecting such `/?cat=59` URLs
to their “pretty” equivalents, like `/category/news/memberbenefits/`. I
just tried this on my blog and it is working as expected. So it seems you
have another plugin that is interfering with the `cat` query var so that
WordPress is not recognizing it for selecting a category. What plugins do
you have installed?
That being said, it would be better of the `select` dropdown would just
include the final category link to begin with, instead of using a URL with
a query var and redirecting. In other words, each `option` of the `select`
should output `get_category_link( $category_id )` instead of just the
`$category_id`, and then this can be navigated to directly. This would
also side-step the problem reported on selinawdesign.com as well.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28492#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list