You’ll need to define your own rewrite tag, and add the tag into the permalink structure. add_rewrite_tag() to register the new structure tag available_permalink_structure_tags filter to add to Permalinks interface post_link filter to change the URL of posts Below is untested and incomplete code, but should get you pretty far. add_action( ‘init’, static function () … Read more
Update any custom post types so they use ‘with_front’ => FALSE in the slug parameters and update your permalink setting to /blog/%category%/%postname%/. Create your categories with sub categories.
Based on your example there are 4 fundamental steps to take. I’ve tried to use examples below, and they may not work as is, but they demonstrate the fundamental principles needed: 1. Add a query var shorty This whitelists shorty and gives the 2c from /shorty/2c somewhere to be stored function shorty_query_vars( array $qvars ) … Read more
have you tried hitting the “Save” button on your permalink settings page to refresh it and apply the new rules?
Automatically added -2 in permalink after set number as permalink
Permalink settings are stuck on https, will not update to http
How to put link on a slideshow gallery?
I am getting 500 error when enabling pretty permalinks
Website appears with wrong permalink in Google’s search
make a new structure tag that does some processing