[wp-trac] Re: [WordPress Trac] #9456: problem using
/%category%/%postname%/
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 9 19:26:29 GMT 2009
#9456: problem using /%category%/%postname%/
--------------------------+-------------------------------------------------
Reporter: ramiy | Owner: ryan
Type: defect (bug) | Status: new
Priority: high | Milestone: Unassigned
Component: Permalinks | Version: 2.7.1
Severity: major | Keywords: parmalink,categories,category, reporter-feedback
--------------------------+-------------------------------------------------
Comment(by johnjamesjacoby):
I've used /%category%/%postname%/ often, and find it to work perfectly
well. I think this is usually the best way to match the URI to the content
of the entry. You can also still access the topic using the month/day URI
also, it will just bounce you to the rewritten one, because the date of
the topic is still correct.
Example:
http://bbpress.org/blog/talkpress-and-bbpress/
http://bbpress.org/blog/2009/04/talkpress-and-bbpress/
Both resolve to:
http://bbpress.org/blog/2009/04/talkpress-and-bbpress/
I agree that keeping your %postname%'s unique is a concern, and that using
%postname% alone is tricky, but it certainly does work the way it's
supposed to. If what you're asking is that %postname% checks all previous
taxonomies and slugs for conflicts, that's more of a feature request in my
opinion.
Back to the original bug.
If I am reading this correctly, this actually isn't a bug or a problem.
WordPress doesn't use nested categories in the URI, and it never has. It
uses the category first in the numeric list of all categories that it is
part of, and uses that as the %category%. Even if you use a breadcrumb
plugin, the breacrumb must account for the categories hierarchy even
though the URI will only show one category in the URI.
Does that make sense?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9456#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list