logoBrett Rawlins

#wordpress

10 Posts

Import tags from a CSV

Recently I needed to add a large list of tags to a WordPress site. The tags were in a spreadsheet, so I converted it to a CSV file and then…

Restore selected posts from a backup

Recently at work we had a situation where we needed to roll back to the previous day's backup of our WordPress site to undo some changes…

Sorting and filtering on custom columns

This is a 2-part post discussing how to set up custom columns for a custom post type in WordPress. Part 1 focuses on adding custom columns…

Adding custom columns (including the admin links)

This is a 2-part post discussing how to set up custom columns for a custom post type in WordPress. Part 1 focuses on adding custom columns…

Demo plugin for using WordPress Settings API

I spent a lot of time recently figuring out the Wordpress Settings API. Although there are still parts of it that remain shrouded in mystery…

Removing unused tags in Wordpress

Sometime you may need to mass delete a bunch of tags that are unused (or maybe only used once). I'm sure there are plugins for this, but…

The right way to do an ajax post in Wordpress

For a long time making ajax calls in Wordpress was very confusing to me. After reading the Codex and several articles about it, I think I…

Fixing "$ is not a function" in Wordpress

I couldn't figure out why I was getting this error on a Wordpress site the other day: Error: $ is not a function After searching a bit I…

Where to put your custom WordPress functions

I found a great WordPress tip while reading some articles today. Often when you're trying to solve a problem you'll find code snippets in a…

Limitations of WP_Query

I ran into one of the limitations of WP_Query recently when I realized it couldn't do a fairly simple query. Problem I wanted to get all the…