Opened 15 months ago

Last modified 15 months ago

#20081 new defect (bug)

Custom Post Type/Custom Taxonomy Does not filter.

Reported by: DennisSmolek Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 3.3.1
Severity: major Keywords: reporter-feedback
Cc: DennisSmolek

Description

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.

Change History (1)

  • Keywords reporter-feedback added

Can't reproduce this - clicking on the numbers as you describe gives me a list of posts limited to that term. What is missing and would be nice is a dropdown to let you change the filter (like there is with the default post categories), but that's a separate issue.

Can you reproduce this issue with ALL plugins disabled?

Note: See TracTickets for help on using tickets.