Category Archives: Tutorials
The updates to the admin UI in WordPress 3.2 are pretty great. I love the new interface. The only thing I didn’t love was the loss of the blocky header and footer of the admin section—that was the easiest and fastest way to customize the look of the admin area for client’s sites (or for [...]
I love parsing XML feeds in PHP. It makes virtually anything that has an RSS or Atom feed completely accessible to my programming. YouTube video feeds, blog feeds, even Facebook Walls. I’ve used SimplePie a lot to make combined social media feeds at work, and SimplePie provides a pretty simple way to access data from [...]
This isn’t a full tutorial, just some code for people to use. I’m working on a site that’s using Cart66 for their online store. Unfortunately, Cart66 doesn’t come with a function or shortcode for displaying a logged-in user’s purchase history. I made a somewhat comprehensive “My Account” page that does just that.
I’ll just come out and say it: I write my blog posts in the visual editor. Yes, it may be blasphemy for a developer to do that, but I just don’t care. I like seeing the post I’m writing come to life as I’m writing it. Since I’m such a fan of the visual editor, [...]
I received a lot of feedback on my Settings API tutorial (thank you so much!) and a few people found some bugs. There was also confusion on how to reference these options in the theme. Well, I have an updated class file and answers to your questions in this post!
[toc type=bullets levels=3-6] Download the files (updated June 5, 2011) This post is based on part 1 of this tutorial, so read it if you haven’t. We left off with a theme options class, My_Theme_Options, that had all the behind-the-scenes work complete. The next step is the HTML.
[toc type=bullets levels=3] The WordPress Settings API has been around for a little while, but I haven’t used it until now. I highly recommend it. It does a lot of work for you and is still flexible enough to create custom-styled options pages (with a little jQuery). Once you’re done with this tutorial, this is [...]
After a lot of searching, and a lot of troubleshooting, I finally found PHP code for exporting a CSV file from MySQL that works perfectly! This might be old news to some, but I’d never done it before and I needed to have that export feature on my Store Locator plugin. $result = mysql_query(“SHOW COLUMNS [...]