PHP - Category Archive

Checklist of Ways WordPress Redirects to HTTPS + How to Force HTTP

This post might seem a little backwards but there is way less information for this topic than the other way around! I am regularly faced with the need to force http rather than the other way around. Disabling SSL and its inherent encryption is generally not something you want to do in ideal circumstances, but I suspect nobody is here under ideal … Read More

Redirect One File Extension to Another with .htaccess

Redirect File Extension To Another Htaccess

For something seemingly so simple, it’s amazingly hard to find a good solution that redirects all files with a given extension on your site to another. I spent a long time Googling and testing and still kept running into issues. But my wasted time is your gain! Because I’ve figured it out. As it turns out, there is more way … Read More

Converting SSI / SHTM Sites to PHP in Minutes – Guide

I was recently lucky enough to purchase a local website hosting company, and I quickly discovered that about 30% of the websites used .shtm files. These SSI files used “HTML Include” directives to load additional content to each page, such as the header and footer. And they didn’t function – at all – on my servers. As it turns out, … Read More

How to De-index Individual Pages in WordPress

Title banner for the page - reads "How to De-index Individual Pages in WordPress"

For a variety of reasons, you may have some pages on your WordPress website which you need to prevent Google from indexing. There is a right way to do it and a wrong way. Maybe you’ve just received the nasty notice from Google regarding your robots.txt file and how you need to remove the “noindex” directives from within and have … Read More

New Website Woes – What’s Normal?

So you’ve just launched your brand new website design. You’ve gone through weeks or months of development and revisions, and you’re so excited to show it off to the world. But then… A confused text from a client whose just visited your new site. “I can’t navigate to any of the sub-pages on my phone!” he says. Your mind immediately … Read More

How to Pass a PHP Variable to JavaScript – Easy Way

For something seemingly so straight-forward, you would think that the information out there would be a bit better on this subject. Passing a variable from PHP to JavaScript is actually very easy! There are just a couple things you need to keep in mind and some ways to do it to ensure it actually works. I find that putting the … Read More

How to Add Reusable Content Block in X Theme & Cornerstone

Working every day with X Theme and Cornerstone, I frequently find myself needing to re-use sections of my content on different parts of my website. While I know that I could save a block of Cornerstone content as a template and re-use it, the problem is that it wouldn’t update whenever I redid the master template. So how do we solve this … Read More

WordPress: How to Manage Site Files Without FTP Access

As a web developer, I frequently encounter situations where I need to have access and modify files in the root directory or within the WordPress install and I don’t have FTP access. Often, I simply want to update some plugins but don’t want to do it without access to these, in case something goes wrong. Well now you can do … Read More

How to Remove Filters Using Child Theme

Disabling filters included in a parent theme using your child theme’s functions.php sounds like something that should be really easy, but it’s actually a little tricky to figure out. If you’re here, you probably already figured out that you need to use remove_filter, but might have noticed that it isn’t working. The reason is probably that the child theme functions … Read More

Radial Search & Results Page – WordPress Tutorial

Performing a radial search (showing results based on location, zip code, etc) in WordPress is one of the hardest things I’ve had to figure out how to do. It held me back in many projects and was always a source of frustration. After trying many different plugins and tutorials, I have finally come up with a working solution. Today I’m … Read More