Change permalink structure

You’ve changed the url structure to end with the post id, not the post name so your reference link will go to a 404. That’s correct behaviour. If you look at the URLs of the pages in your right-hand menu you will see they end in a number, not a name: https://www.bricolage.fr/outillage-electroportatif/scies-circulaires/4023/ If you want … Read more

Custom Taxonomy rewrite rule causes 404 error on page or single post depending on if it’s set to “True” or “False”

As pointed in my comments, here are the issues with the /%location%/%postname%/ permalink structure: When the taxonomy’s URL rewriting is enabled, going to a Page like example.com/page-slug would result in a “page not found” error because WordPress sees the request as a “location” request, where in that example, WordPress would try to find a “location” … Read more

Make query parameter an endpoint

You need to put this code into your product single page before get_header() function start. <?php global $wp; if( isset($_SERVER[‘QUERY_STRING’]) && isset($_GET[‘order’]) ){ $url = home_url( $wp->request . ‘/order/’ ); wp_safe_redirect( $url ); exit; } ?>

Add word to permalinks does not transform the urls

Function get_the_category() returns array, that is why the condition $postcat->slug == ‘section’ is always false. In its current form, your filter can change links to posts that do not have the section category. You should change the function to check the post for which get_permalink() was called, instead of checking the global $post. add_filter( ‘post_link’, … Read more