How to create a standard WP Page that has the same url as an archive
How to create a standard WP Page that has the same url as an archive
How to create a standard WP Page that has the same url as an archive
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
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
How to merge 2 custom post type permalinks
WordPress/NGINX not respecting the category URL for new posts
changin the url (permalink as it goes these days) on one specific menu layer
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; } ?>
unable to display two post per page in wordpress front-page.php
Permalink length
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