php - Wordpress. How to rewrite the permalink of a custom hierarchy depending on its slug -
i need generate links like: /author/m/marie-curie or /author/n/nananana
in more general form /author/{letter}/{author} {letter} first letter of {author}
farthest i've come change hierarchy slug like:
register_taxonomy('author', 'book', array( 'alltheargs' => blah, 'rewrite' => array( 'slug' => 'author/x' ) ) );
this works, gives me links like: /author/x/marie. there way change taxonomy slug depending on hierarchy?
Comments
Post a Comment