[wp-trac] [WordPress Trac] #21050: EP_TAXONOMY : Rewrite endpoints don't work for custom taxonomies
WordPress Trac
wp-trac at lists.automattic.com
Fri Jun 22 20:44:14 UTC 2012
#21050: EP_TAXONOMY : Rewrite endpoints don't work for custom taxonomies
---------------------------+-----------------------------
Reporter: wpsmith | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version:
Severity: normal | Keywords:
---------------------------+-----------------------------
From what I can see and have tested, I simply cannot get a double custom
taxonomy query to rewrite using endpoints.
Ex. http://domain.com/?taxonomy_name1=tax-slug-1&taxonomy_name2=tax-slug-2
If I add an endpoint:
{{{
add_rewrite_endpoint( 'taxonomy_name1', EP_NONE );
add_rewrite_endpoint( 'taxonomy_name1', EP_PERMALINKS );
add_rewrite_endpoint( 'taxonomy_name1', EP_ALL );
add_rewrite_endpoint( 'taxonomy_name1', EP_CATEGORIES );
}}}
None of these work. Instead I had to build out a new permastructure via
add_permastruct().
However, EP_CATEGORIES (and thus EP_TAGS) both acted as expected. However,
it would be great to be able to have EP_TAXONOMY that automatically built
out the rewrite rules by adding the appropriate endpoint. Or is this too
ambitious?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21050>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list