Allot of plugin have a function that is triggered when the plugin is activated. This ‘activation’ function allows the plugin to setup itself, e.g. create a custom table or set some options in the options table. This works fine in a ‘normal’ WordPress website, but when you create a new site in a WordPress Network website these plugin activation functions are not triggered. Continue Reading…
Creating a widget
Today I’ll explain how to create one of my favourite WordPress features, a widget. Widgets allow WordPress users to add functionality to their website without requiring any coding experience. Before we create our first widget it’s important we understand the way they work.
Continue Reading…
Let WordPress automatically clean up your trash
Allot of WordPress users never empty their trash, what could result in a large amount of trashed posts. Since you’ll probably never use these posts again, we can let WordPress delete them automatically after a certain amount of days. We can enable this feature by adding the following line of code to our wp-config.php file.
Continue Reading…
What file is this page using? – What The File
When I started off with WordPress I had trouble finding out what file I needed to edit to change the page I was viewing in my browser. I’ve checked the Template Hierarchy dozens of times, trying to figure out what file was loaded by WordPress to display my page.
Continue Reading…
Disable revisions
In WordPress a revision (copy) of a post is saved each time you save it. This way WordPress enables you to go back to a previous version of a post (remember, a page is also a post). Although this might sound like a feature that may come in handy, most people never use this.
Continue Reading…