[wp-trac] [WordPress Trac] #14497: Relate a taxonomy to a post type on menus
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 1 08:38:37 UTC 2010
#14497: Relate a taxonomy to a post type on menus
-------------------------+--------------------------------------------------
Reporter: vteixeira | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
I was trying to create a simple functionality on a site I'm building right
now and just noticed that this is not possible.
The functionality needed:
1- To actually add a post type as a menu item. (!important)
2- To relate a taxonomy item to a post type on the menu (!more important)
The problem I'm facing:
Imagine I have a post type called Schools and another called Shops.
Then I have a taxonomy called Cities that is enabled for both post types.
I want to have a menu like this:
-Schools
--New York
--Washington
--Los Angeles
-Shops
--New York
--Washington
--Los Angeles
The first problem is that I can't add a post type as a menu item (could
get something like this just by adding a custom item - then another
problem is that there's no archives for post types...)
The second problem is that there's no way of referencing the taxonomy
items to the post types!
So each city that is child of a post type (on the menu) will display both
post types posts - there's no way to filter this on the menu right now.
I think this is basic menu building functionality. This should be in core.
Of course I can have two taxonomies like school-cities and shop-cities but
this is weird and really strange and I would not be able to relate the
different post types by city... Not a viable solution.
Things really gets more difficult when I need to build a post type called
Cities to be able to create a page with information for each city and then
relate this to the cities taxonomy.
If this is already requested on another ticket please close, but if not I
need your thoughts on this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14497>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list