Category: Wordpress Development
-
3 Simple Steps to Protecting your WordPress Website with SSL / HTTPS.
There are tons of options out there to protect yourself with https and it can be daunting at first, but I will give my view on it and how I’ve managed dozens of WordPress websites with HTTPS over the years. Before we go any further you must obtain a SSL Certificate (usually done via your…
-
iPad Media Queries
iPad Media Queries (All generations – including iPad mini) Thanks to Apple’s work in creating a consistent experience for users, and easy time for developers, all 5 different iPads (iPads 1-5 and iPad mini) can be targeted with just one CSS media query. The next few lines of code should work perfect for a responsive…
-
Quick snippet to change all instances of WordPress URL
Sometimes you are moving a websites folder structure, or sometimes you are moving a website hosts. This quick and easy sql script will allow you to update all instances of the current URL with a new URL so moving wordpress sites is painless. UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl’, ‘http://www.newurl’) WHERE option_name =…
-
WordPress SSL Offloading
Understanding what’s happening When your page is accessed over HTTPS, but the Load Balancer is performing SSL offloading and actually requesting your content on the non-SSL port 80, the webserver, PHP, or anything else for that matter, does not understand or see that it’s being accessed over https://. The fix for this, is that Load…
-
Bundling plugins with WordPress themes.
First off, many people will disagree with including Plugins with your themes. Yes and generally rightly so: Automatic Updates: If the plugin is freely available from WordPress.org already, then so are automatic updates to the plugin. The original author can add features, fix bugs, and deploy them quickly. Your clients and customers then benefit from on-going development.…
-
One thing you didn’t know about WordPress images.
By default in WordPress when you server up a .JPEG file, WordPress optimizes the image to save bandwidth and space. 90% of the time, no one will realize this as the WordPress function behind image optimization does a fantastic job at keeping it’s quality the same, unless you are using very large high quality photo…
-
Interacting with WP_Query, listing more posts from the current category.
For a new project of mine I was creating a single.php for the blog side of the website. The website had a few specific categories for the blog, these being News, Races and Events. Whenever you were reading a blog post under one of these categories, the sidebar should show readers more posts from that…