Change permalink structure in all sites of a multisite

You would probably need to do this programmatically, for example add a PHP file to your /wp-content/mu-plugins/ folder with this: <?php add_action(‘init’, ‘modify_all_permalink_structures’); function modify_all_permalink_structures(); if (isset($_GET[‘modify_all_permalinks’)) { $structure=”/%category%/%postname%/”; $sites = get_sites(); foreach ( $sites as $site ) { switch_to_blog( $site->blog_id ); global $wp_rewrite; $wp_rewrite->set_permalink_structure($structure); $wp_rewrite->flush_rules(); } restore_current_blog(); } } Then access yoursite.com/?modify_all_permalinks to trigger … Read more

iFrame permalinks on WordPress

What you want is not possible. The iframe on your page is generated by a script from WebLink that requires the ?symbol= parameter in the URL to be able to generate the correct iframe. If you rewrote the URL the way you want the script would not work, since the symbol parameter doesn’t exist anymore. … Read more

Custom post type single page returning 404 error when sharing archive url with custom taxonomy

So after some more research I came across this https://stackoverflow.com/questions/23698827/custom-permalink-structure-custom-post-type-custom-taxonomy-post-name – which I now think I remember using at some point but must have deleted thinking it hadn’t worked (as I hadn’t figured out the rest of the process). But this is the particular function and filter that worked: /** * Tell WordPress how to … Read more

Permalink not changing according to post type

Permalink structure for blog posts and pages are managed in WordPress Settings -> Permalinks page, so to make blog posts have permalinks like blog/%postname%/ and you’ve done it right. The tricky part is about Custom Post type permalinks declaration: in your CPT arguments declaration there’s a rewrite rule parameters, which in turn has with_front – … Read more