[wp-trac] [WordPress Trac] #28232: Custom Taxonomy filter on post listing pages
WordPress Trac
noreply at wordpress.org
Tue Jun 16 07:24:52 UTC 2015
#28232: Custom Taxonomy filter on post listing pages
-------------------------------------+-----------------------------
Reporter: jtsternberg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Taxonomy | Version: 4.0
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+-----------------------------
Comment (by husobj):
Hi
I just discovered this ticket after working on a patch myself.
I will attach my patch 28232-alternate.diff for reference in case it's any
use.
It's pretty similar although I have based my approach on the same way that
'show_admin_column' is implemented in terms of code structure.
I found that if I passed 'value_field' => 'slug' in
wp_dropdown_categories() which was introduced in a recent-ish version of
WP then the query just works as it queries the slug in the same way that
the 'show_admin_column' terms links do.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28232#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list