Often when we migrate a site from one domain to another we have to update the values in the database…
Category: WordPress Snippets
Update: WordPress Loop for a Custom Post Type
As our post on creating a loop for a custom post type was one of our most popular…
Expanding a div beyond its container to be full width of page
Sometimes its necessary to break a div out of its container and make it full width of the…
Protect your email address on a WordPress site
WordPress comes with some useful built in functions for sanitising and protecting content which are often underused. For…
Displaying the taxonomy name
Sometimes you want to display the taxonomy value for post type and this next bit of code will…
Changing the order on a Woocommerce Product page
We have just completed a WordPress site for client using Woocommerce where the design requirement meant that the…
WordPress loop for a custom post type
This post has been updated with newer and better information. Please go here to see the updated version…
Setting a template header on a WordPress file
This is a quick snippet to let you know how to add a template header to your WordPress…
Excluding a category from the WordPress Loop
Sometimes you might want to exclude a blog category from your WordPress loop, for instance you might have…
Detecting the browser used and adding a body class
This is one of the snippets that we nearly always add to our sites as it means we…