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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -