[wp-trac] [WordPress Trac] #10786: Implementation of %my_taxonomy% in permastructs is incomplete
WordPress Trac
wp-trac at lists.automattic.com
Fri Sep 23 14:09:25 UTC 2011
#10786: Implementation of %my_taxonomy% in permastructs is incomplete
------------------------------------+-----------------------------
Reporter: johnbillion | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Permalinks | Version: 2.9
Severity: minor | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+-----------------------------
Comment (by aaroncampbell):
Replying to [comment:13 filosofo]:
> Replying to [comment:11 dd32]:
> > > Is there some way we can do this without importing the chief
annoyance of %category%, namely that the category chosen is always just
the one with the smallest ID?
> >
> > Only by adding a filter that says "This is the preferred term for this
taxonomy"
>
> That filter or some other way of registering a preferred term needs to
be in place before we do anything like this. Arbitrarily picking a
category sort of made sense even as a hack, because there are people who
build their site structure with categories as hierarchical slots holding
individual posts. But it doesn't make sense to take that hack for one
particular use of one taxonomy and extend it to all taxonomies abstractly.
See #18752 - I added a filter to allow a plugin to specify which category
to use in the permalink structure instead of forcing it to use the cat
with the lowest ID.
Other than that, I kind of like the blahblah/-/blahblah idea for dealing
with the cases where there's no term.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10786#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list