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…
Tag Archives: WordPress
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…
Enable role to access the Gravity Forms admin screen
Gravity Forms is in my opinion the best choice if you’re looking for a form plugin. Unfortunately by default only users with the Administrator role can access the Gravity Forms admin screen. If you want other roles being able to create forms, view entries, etc. simply use the following code.
Continue Reading…
Bootstrap submenu open on mouse over
When developing a custom theme I love using Roots Theme. One of the reasons I do is because of it’s integration of Twitter’s Bootstrap. The only thing I always change is the menu’s behaviour, I want it to open on mouse over instead of on click.
Continue Reading…