Category Archives: Tutorials

Upload Media Programmatically in WordPress

How To: Upload Media via URL Programmatically in WordPress

WordPress themes and plugins sometimes need to download files from third party servers, like images, documents, archives, and more. A Flickr image browser is a great example, where you wouldn’t want to hotlink to the images on Flickr, but rather download them to your own. Note that file_get_contents is not the way to go, so … Permalink


Google Analytics API in WordPress

Using the Google Analytics API in WordPress

I’m pretty sure you all know what Google Analytics is, but not everybody is aware that it comes with a Data Feed API which can be used to grab different sorts of valuable information from your Analytics profile. In this post we’ll talk about the API, authentication and firing requests to the API using the … Permalink


Style Posts by Taxonomy

How To Style Your Posts Based on Category, Tag or Custom Taxonomy in WordPress

We heard this question many times and it’s not as simple as it sounds, so we’re dedicating a whole blog post to the solution. Today we’ll talk about child themes, taxonomy (categories, tags and custom taxonomy), the post_class function, it’s filter friend and their correct usage in WordPress themes. Permalink Permalink


Tabs with Settings API in WordPress

How To: Create Tabs with the Settings API in WordPress

WordPress themes and plugins come with quite a lot of features and options these days, and the Settings API does provide a very easy to sectioning method. Sections are good and work out of the box, but if you’ve got more options than your sections can handle, it’s wise enough to split them into different … Permalink


Tweets to WordPress Posts Plugin

Writing a Tweets to WordPress Posts Plugin (Part 2)

In the first part of this tutorial, we covered the WordPress Cron engine, created our own scheduled task that used the WordPress HTTP API to query the Twitter Search API and create new Status posts out of new tweets in the search. Today we’ll talk about some improvements that can be made to the plugin. … Permalink


Tweets to WordPress Plugin

Writing a Tweets to WordPress Posts Plugin (Part 1)

There are quite a few plugins out there and this post is not about using them, but rather about creating your own. In this tutorial (which will be divided into several parts) we’ll cover the fundamentals of the WordPress Cron (task scheduling) engine, we’ll query the Twitter API every once in a while to gather … Permalink


Admin Pointers in WordPress 3.3

Introducing Pointers in WordPress 3.3

WordPress 3.3 is planned for November this year and we published the scope a while ago here on Theme.fm. As mentioned in that post, 3.3 will get a series of UI improvements, one of which is Pointers (or Admin Pointers). We learned about pointers in WordPress a few hours ago from one of Daryl Koopersmith’s … Permalink


Comments Moderation in WordPress

Display the Number of Comments Held for Moderation

It’s always nice to show how many comments and pingbacks your posts have, right? There are also plugins that can show off how many comments have been blocked as spam as a sidebar widget, although I don’t see how useful that could be to your readers :) Today we’ll talk about comment moderation and how … Permalink


Twitter Avatars oEmbed

How to: Display Avatars with Twitter Blockquotes for WordPress

We released our Twitter oEmbed plugin for WordPress last month and we’ve been getting quite some positive feedback about that from developers. Today we’re going to show you how to use the plugin’s filters to add the tweet author’s avatar (profile image) to the left of your Twitter quotes. Permalink Permalink


WordPress and Capistrano

Deploying WordPress with Capistrano Part 2: Staging Servers, Tagging & Database Security

In the first part of this tutorial we met Capistrano — a command line utility to deploy your web application. We went through the process of installing Capistrano and “capifying” WordPress, a new look at the WordPress configuration file and the shared uploads directory. Today we’ll dig deeper into Capistrano and cover three topics that … Permalink


Page 2 of 512345