Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
You can create a rewrite rule using add_rewrite_rule() that will match a given path to query parameters: function wpse_283774_rewrite() { add_rewrite_rule( ‘^events/([^/]+)/?’, ‘index.php?pagename=events&country=$matches[1]’, ‘top’ ); } add_action( ‘init’, ‘wpse_283774_rewrite’ ); This rule will match whatever is after /events as the country query parameter. Setting the third argument to top means that it will match our … Read more
It seems that finding your internal links is as simple as searching your site using the build in WP search widget! You just paste the link you are searching for and WP will show you all post or pages containing the link (no matter what anchor you used). I didn’t know the default search function … Read more
Allowing slash in slug/permalinks
Automatisation permalinks for each making of new page
Why I had to re-save permalink setting after moving my WordPress site to another hosting provider?
What happening is that WP is searching for a category rather your post. So the category rewrites come before post rewrites and that is making the WP confused. For more info about the rewrites, I can point you to an excellent article here
I found the issue. It was an events calendar plugin by Modern Tribe. This plugin was creating a ‘slug’ aka route as /events. I disabled the plugin.
How to search for images and get it’s link?
This could depend on your host server – I used to host my sites on a Zeus server and had this same problem. You’re probably not on a Zeus server, it’s more common to be on Apache. You can check with phpinfo. Create a file and call it phpinfo.php – include only this: <?php phpinfo(); … Read more