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 »

The Pros and Cons of Art Directed Blog Posts

63

Art Directed Posts

When it comes to blogging, for a designer, the art can feel somewhat lacking in, well, art. So it is natural for the designer inside us to begin craving a new approach to this task, which can at times feel a bit tiresome and trying. Blogging can often feel this way for a designer, because we are not necessarily the best at expressing ourselves through our words. We tend to be much more visual creatures.

We are better at finding the right look than at finding the right words, so blogging can move us a bit out of our comfort zone, even though we tend to have a firm enough grasp on the topics that we tackle.

Art directed blog posts are posts that are designed individually to match the subject of the post, and they tend to break from the usual look and setup of your site. This allows you as a designer to keep a proverbial fresh coat of paint on your site, without having to take the time and make all of the considerations that come with a complete redesign.

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 »

One Week of MightyDeals.com

32

This day last week, Walter of Web Designer Depot fame launched his newest venture; MightlyDeals.com. One week in, we’re going to take a look at the site so far and see what we make of it.

Mighty Deals is a site aimed at saving designers and other creatives a fortune on the tools and services they use every day. They offer one product at a time, at a massively discounted price (Around 50% so far), and each deal lasts only 24-48 hours.

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 »