WordPress $post, $term and $comment Object Cheat Sheet

56

WordPress Object Cheat Sheets

There are several objects in WordPress that we use all the time, namely $post, $comment and categories/tags. If you’re like me though, you never remember everything that’s in there, or the names of the values you want.

This cheat sheet will be a reference which you (and I) can refer to the next time you’re using one of the WordPress objects.

Read More »

Use the Transients API to List the Latest Commenter

51

Transient API

The Transients API is a WordPress feature that I had never heard of until a few weeks ago, when I wrote a post on getting your Twitter follower count in plain text.

On that post, Otto left a comment with a different way of getting the same result, using the Transients API. Instead of using cron, which can be complicated, transients allow you to use just one or two lines.

In this post, I want to show you how to use transients, and to do that, we’re going to build a simple script that will list the latest commenter on your blog, along with their avatar. The end result will look like the image above.

Read More »

How to Create Image Galleries in Your Theme

117

WordPress makes it straightforward to create a gallery from the images attached to a post. Just a couple of clicks and the gallery shortcode will be inserted into your post for you.

Why not make it even easier though? In this post, I will walk you through adjusting your theme to automatically insert a gallery after every post.

We’ll also limit how many images show up in the gallery (The rest can be shown on the individual image pages themselves), and exclude our post’s featured image if it has one.

Read More »

How to Get Your Twitter Follower Number in Plain Text

116

Twitter Follower Count in Plain Text

It’s easy to use a service like TwitterCounter.com to get a little chicklet button of your Twitter follower number. If you have that number in plain text though, then you can style and integrate it into your site much more attractively. In this post, I’ll show you how to get it.

You can see the end result in the top right of Tiny Buddha, a site I recently coded using Chameleon (Though this will work on any WordPress theme!)

Read More »

Working With WordPress Shortcodes

185

WordPress shortcodes are used frequently in plugins and themes as a way to achieve extra functionality, without the need to modify template files. You just type the shortcode word right into your post. Some plugins and themes use them to add event calendars, some for making announcements, while others use them for inserting contact forms.

Simply, WP shortcodes are awesome.

However, what if you’re a theme / plugin developer wishing to use them for your next great product, but you have no idea where to start? We’re going to fix that in this tutorial.

Read More »

How to Edit the WordPress RSS Feed

147

Edit WordPress Feed

Ever thought you could make some improvements to your RSS feed? Like letting it cover more (or less!) content? Or adding some extra details onto the end of your posts?

In this post, I’m going to show you how to do exactly that.

Read More »

MyBiz Theme for WordPress Discount Code

44

MyBiz

Over on PliablePress, we’ve released our newest WordPress theme. MyBiz is designed for modern businesses who don’t want the “faceless-company” approach that customers are used to receiving.

It’s vibrant, colorful (You even get 5 color schemes to choose from!) and yet still professional and well organized. Most of all, we’ve put an extreme amount of care into the homepage, giving you 3 different ways to ensure your best content is highlighted and that your visitors go to the pages you want them to see.

Read More »