Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#19659 closed defect (bug) (duplicate)

using %tags% in permalinks doesn't work

Reported by: hubertnguyen's profile hubertnguyen Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: General Keywords:
Focuses: Cc:

Description

Hi there, since WP 3.3 comes with improvements in the way permalinks are handled, I thought that I would try things that would be unthinkable not so long ago. I wanted to use something like

/%tag%/%post-id%/

but it looks like %tag% may not be evaluated at all in the code that handles the permalink. The codex says that it is possible though, and I don't see why not, so I'm assuming that it's something that may have been overlooked because it was not recommended before.

Change History (4)

#1 @dd32
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

%tag% is not supported within URL's, nor are any other taxonomies (other than the obvious, %category%).

See #9466 #10786

#2 @hubertnguyen
13 years ago

dd32, thanks for confirming. The codex would let one think otherwise:

http://codex.wordpress.org/Using_Permalinks

"You can use these tags to customize your "Pretty" or "Almost Pretty" permalinks. A few hints:"

%tag%
A sanitized version of the tag name (tag slug field on New/Edit Tag panel).

#3 @dd32
13 years ago

The codex would let one think otherwise:

The codex is a wiki, anyone can add/edit/update the documentation there :)

I've removed the reference to %tag% from there though.

#4 @hubertnguyen
13 years ago

dd32 - I'll do that next time. I didn't think that I should edit it without being 100% sure first. Thanks!

Note: See TracTickets for help on using tickets.