The 3.1 update to Yoast’s WordPress SEO plugin brought with it a new feature—the ability to set a “Primary” category for a post. You’ll now see a “Make Primary” link when selecting categories (or a bold “Primary” label if one has been set). It's possible to use this primary category in a custom theme...

Yoast's WordPress SEO plugin will automatically "ping" search engines that your existing XML sitemap is updated. But what if you want to disable this? The plugin settings do not have an option for this at the moment, but luckily there is a filter that can be hooked into with a line of code.

I recently was tasked with converting a Tumblr blog into WordPress. On Tumblr, or at least on the theme I was dealing with, they have a pretty fancy archive section that lists all the posts as images underneath the months. If there aren't images, then it shows a little text. To do something similar...

While managing a few projects that were built by freelancers, I came up with a list of guidelines for the build and for WordPress used as a CMS. I've added reminders to it based upon the mistakes that fly in the face of what I consider a "good" build. Note that some of this is a matter of preference and opinion. I thought I would put this out there as a starting point for anyone trying to put together their own guidelines...

If you're locked out of WordPress and can't reset your password, the official docs list several options that allow you to access your administrator account again. But what if you want to create an entirely new admin user? For blogs that I have FTP access to, but no working WordPress password, I threw together the following script to create admin users.

Most sites contain areas of text and HTML that are repeated throughout the site. Links in the footer, copyright information, a button or phone number in the header, or some other static content. If you're a developer working on your own site, then you may just keep this in an include file and edit the code manually. If you're using Wordpress as a CMS for a client, then it's a good idea to make these areas of text/images editable, so that they can have full control of their site.

Recently I had to transfer all the blog posts from an old 2.4 version of WordPress, to a new 3.0 install. After I exported the content (via Tools > Export), and tried to import it into the new blog, the importer froze up and never completed. I was surprised to notice that the XML file was 50MB. Opening up the file in Notepad++ revealed that this was all spam. Apparently the blogs spam comments had never been deleted and there were over 10,000 spam comments!

Get In Touch

I’m a freelance front-end web developer/programmer, with an eye for design.
I enjoy making clean, functional, and detail-oriented websites using the latest
HTML5, CSS, JavaScript and PHP. Lately I've been working a lot with WordPress.Status: Not Accepting Work at this Time

Scripts & Projects

An NPC creator for fantasy RPGs. Geared towards D&D, Pathfinder, and other table-top games. Creates a random character with various physical and personality traits, armor & weapons, inventory items, and more, to help with roleplaying and backstory.