When you create a custom post type, the url is prefixed with the post type name or slug, you can remove that on the output:
To make the search results appear on your facet page, add a search facet to the page and then just add these to your functions.php: YOUR_FACET_SEARCH_WIDGET_NAME – with the name of your facet YOUR_RESULT_PAGE – with the slug of you facet page The same thing can be done for the normal WordPress search form
Somehow your site git indexed with the feed url’s and even worse when the url does not excists in google anymore, google gives you two errors. One for the url and one for the same link with /feed/ behind it. To solve this you can use two actions. One: remove the feed from wh-head This […]
First of, you should look at the official documentation customize-access WP Rocket. This article uses the same technique but adds a trick. When you use the init hook, the function runs every time the hook fires. To reduce this, we have added an option and before we run the full function we check if that […]
This snippets was used in winkel-centrum.nl, I needed to adjust an import and add colors found in the title as attributes. I had imported the products and wanted to extract a word from the title to add as attribute in the product. I used a shortcode because I wanted to visualize the products I was […]
When you give access to the backend for minimal users, you will want te reduce the available options to make it more easy. One thing is the edit user profile where there are a lot of unused options. By adding (or removing) classes in the list you can hide the fields. Find the class associated […]
In the Netherlands WooCommerce removed the second address line. This made the error rate for people failing to insert the housenumber rise. I had two options, put the second line back and make it rweuired, or check if the one line that is there has a number in it..
This option started in 2019. A friendly notice something is terribly wrong with the website. You might not feel it is friendly, and terribly might be an exaggeration. But anyway you are stuck.. if you are a normal user, like an editor you should contact the person maintaining the website. If you are the owner […]
This week WordPress released version 5.3 and the ‘Gutenberblocks’ are maturing. You can perfectly run WordPress without the blocks using the ‘classic editor‘ but the concideration list you might have is getting smaller.
Loading the textdomain for a custom plugin can feel like a nightmare. It either works, or you are endlessly trying to alter it untill it workd. wp_debug is no help and there you feel you do not have any way to debug it. Untill now: load_plugin_textdomain does return true or false and if it is […]