Dynamic Custom Permalinks

It depends on what you mean by “changed dynamically”, but the simplest way to achieve what you’re talking about is to use pages (or a hierarchical custom post type), and make the “city-information” pages into children of the “country-information” page they are associated with. Then set permalinks to “Post Name”, and you’ll get the urls … Read more

How to use all tags in post permalinks

To use all tags in a post permalink, try a variation of my similar answer for How to use first tag in permalinks add_rewrite_tag( $tag, $regex ) adds a new placeholder you can use in Settings/Permalinks. The filter on post_link translates the placeholder into something useful, here a list of all tag slugs, separated by … Read more

“Custom Post Type Permalinks” plugin URL strcuture

I managed to find a way to fix this by toying with my Custom Post Type and Taxonomy registrations. In register_post_type properties: ‘rewrite’ => array( ‘slug’ => ‘classes’ ), In register_taxonomy properties: ‘rewrite’ => array( ‘slug’ => ‘classes’, ‘with_front’=> false ), I now have a clean structure where http://site.com/classes/ points to the post type archive … Read more