Creating a Tumblog with WordPress

For the recent (first) design of my personal site I added in some Tumblr style functionality. In this post we’ll look at how WordPress can be used to create a Tumblog.We’ll be using a function that was added in 2.7 that doesn’t get used as much as it should: the post_class function. It adds a CSS class to each category, tag etc. we’re interested in the category bit. First thing to do is to create all the different categories you want — that’ll probably be all the standard Tumblr categories: movie, picture, article, quote and link. You’ll then need to add to within your loop the post_class functionality:<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
This now gives each post a class of category-name (ie category-link). This means we can then start styling! For my blog I just added a different icon to each post type (not strictly true—read on!), bit…

You Might Also Like...

  • Create An Advanced Theme Options Page in WordPress: Day 3

    149 readersDay three of "Create an advanced theme options page in WordPress" styles the options page.

  • sliding-login-panel

    How to Build a Top Sliding Login Panel

    489 readersMany times, I get requests from my clients who want to implement a Sliding Login Panel at the top of their WordPress blogs. With jQuery and the WordPress default login code, its very easy to build. Here is what it will look like :- DEMO SLIDING LOGIN PANEL The above demo is only HTML code

  • My profile and Twitter link

    Adding and using custom user profile fields

    707 readersHow to create and display custom user profile fields in WordPress that allow users to input additional information about themselves.

  • Rounded Font-Sizes (with Colors!) for Tag Clouds

    1762 readersTag clouds accomplish their varied font sizes by applying inline styling to each tag. The resulting font sizes can be really weird like style='font-size:29.3947354754px;'. There is nothing inherently wrong about that, but it feels a bit unsettling and less controllable. Mike Summers sent in a solution he uses on his own site. Let’s check it

  • Add Classes to post_class

    1995 readersThe post_class() function in WordPress is pretty darn useful. It is used like this, in most templates, in a wrapping div of all the content you are outputting: <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <!-- Post stuff --> </div> I was in a circumstance where I wanted to add an additional class to what that

  • Creating Custom Fields for Attachments in WordPress

    931 readersCustom fields in WordPress make it easy to customize your theme in a variety of ways; plus, they are simple to implement for posts and pages. Attachments, on the other hand, take a bit more work to implement, requiring you to read through and decipher core source code in order to make them work. We’ll

  • chart

    Creating a Chart on Your WordPress Archives Page

    276 readersOne part of WordPress that I've never been overly impressed with is archives. This isn't so much a WordPress problem as it an archive problem, archives are inherently boring. As a result of this revelation I've spent some time thinking up new ways to present the information. My latest idea was adding charts to represent

  • Rock-Solid WordPress 3.0 Themes using Custom Post Types

    2662 readersThe WordPress community is buzzing with excitement over the soon-to-be-released WordPress 3.0. Currently in Beta 2 now, WordPress 3.0 will have a lot of exciting new features , such as a new default theme and better menu management. Quite possibly the most exciting of these features is custom post types. In this tutorial, we’ll talk

  • TextMate WordPress Widget Snippet

    226 readersI love WordPress’ sidebar widgets. I also despise coding them. I love how they let me offload menial management tasks directly to clients, avoiding all the “Change this word to another word!” e-mails. But every time I code them, it seems to involve 15 minutes of Googling, copy-pasting from a previous widget, and looking at

  • List Posts by Category In Navigation

    55 readersWordPress is primarily a blog platform. Not infrequently it is used as a CMS. But not just static pages play a role, but also posts, because they are giving more opportunities, having better performance and be published in feeds. Therefore, I prefer to use, in the context of WP as a CMS, posts more than