Adding a new rewrite tag
-
I’ve noticed this method in wp-includes/classes.php
function add_rewrite_tag($tag, $pattern, $query)
I want instead of using %year% in the permalink structure to have a custom tag taht will display the 2 digit value for the year (e.g. %shortyear%).
Does anyone have an idea about I should use this function to do that?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Adding a new rewrite tag’ is closed to new replies.