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…
Tag Archives: development
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…
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…
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…
Getting the URL for a translated page based on the URL of a different language using WPML
When working with WPML the other day I ran into the following issue. I had to redirect the visitor to the preferred language translated page, based on an url. This also ment that at the point of redirecting there no post id yet know.
Continue Reading…