If when adding or editing a post (or Page, Product etc) and the dropdown field is missing therefore stopping you from selecting your template file make sure each file includes this line in the header section: Here is an example for the full header:
If when adding or editing a post (or Page, Product etc) and the dropdown field is missing therefore stopping you from selecting your template file make sure each file includes this line in the header section: Here is an example for the full header:
Let’s say you have two plugins installed in WordPress and you need to run a function in PluginB from PluginA. This code will allow you to do this: Code for PluginB Here we are calling the custom action created in PluginA called plugin_a_custom_action. This code will check that PluginA is active and then get the […]
To stop a WordPress plugin from asking to be updated you need to add the following code in your functions.php file. It is very easy to do and shouldn’t take long at all.The main filename of a plugin is often the same as the folder name. This really only should be used if you REALLY […]
Sometimes you need to add some extra functionality to the backend of WordPress, whether to add a button in the main Dashboard page, an extra menu option in the main sidebar menu or even a whole new section in there. When I tried looking for a solution to add a button on the Dashboard page […]
If you are like me and after upgrading your PHP to version 8 you started receiving the following error, then you are in the right place to fix it. You might as well have received a code 500 in your browser from this error also. This error signifies that there is most likely a hook […]
Sometimes you might need to hide one or more shipping option(s) for a particular product or category. This code will do this, all you need to do is add it to your themes Functions.php file. In this example, I am hiding the shipping option called “Free Shipping“. You can get this from the database table […]
Let’s say you have been looking at the many JavaScript scripts that WP loads and you would like to stop some from loading to help speed up your site. Now, this obviously could cause your site to not perform how it should, so it would be handy to see any errors when you stop a […]