How to stop bad bots from visiting your website?

Recently I noticed in Google Analytics a lot of referral to the page https://www.worldofwp.com//h/1486338.html that doesn’t exist on my website. Visiting the page gives a 404 error. Diving deeper into Google Analytics learned me it was all referral spam from a website called autoseoservice.org. After searching on the Internet I found out it definitely was … Read more

Allow PHP in WordPress default text widget

The default text widget in WordPress only supports HTML. You can extend the functionality of the text widget by making it possible to execute PHP. Put this code in the functions.php of the theme you are using:

Always backup your functions.php before changing it!