[wp-trac] [WordPress Trac] #20081: Custom Post Type/Custom Taxonomy Does not filter.
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 20 08:04:56 UTC 2012
#20081: Custom Post Type/Custom Taxonomy Does not filter.
--------------------------+-----------------------------
Reporter: DennisSmolek | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.1
Severity: major | Keywords:
--------------------------+-----------------------------
I have tested this on 4 different sites and found the same issue. At first
I thought it was the code I copied then I realized the issue was happening
with core.
'''
Steps to produce:'''
Use register_post_type to add a post type, say "objects"
Use register_taxonomy to create custom tax, say "attributes"
Be sure to have 'show_ui' => true
Create a post, give it a tax. IE: attribute1
Create a second post, give it a different tax. IE: attribute2
On the menu navigate to your tax menu page
here it will list attribute1 and attribute2.
It will show 1 post in each, and the number 1 is a link to edit.php
where it creates this URL string:
yoursite.com/wp-admin/edit.php?post_type=objects&attribute=attribute1
'''Expected Result:'''
The page should now be filtered down to JUST posts that have that
attribute.
'''Actual Result:'''
All Posts are still visible. Filtering has no effect.
I found this by creating custom columns and with my switch listing links
to the Tax's to be filtered. I've never gotten it to work.
I do have a great script I believe by YOAST that creates a drop down to
filter Tax's but this actually changes the global query itself.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20081>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list