Archive for November, 2007

Nov

21

Blank Theme - 2 column left menu fluid

www.tomorrows-laundry.com - 2 column left menu fluidThis layout has its menu positioned to the left of the content like the one above. The only difference between the two is this one has a Fluid layout. That means that it will scale with different browser sizes.
Features:

  • Fluid Layout
  • 2 Columns
  • Traditional Look And Feed

Nov

21

Blank Theme - 2 column left menu fixed

www.tomorrows-laundry.com - 2 column left menu fixedThis layout has the menu sat at the left-hand side of the content, giving the layout a traditional look and feel. Because this layout is fixed, it will not scale with different browser sizes and therefore you don’t have to take scaling into consideration when creating your design.
Features:

  • Fixed Layout
  • 2 Columns
  • Traditional Look And Feel

Nov

13

How to Display Your WordPress Category Counts

In this tutorial we will show you how to display the number of posts you have made that are associated to each category you have designated.

First, located where you have your categories displayed on your site, by default, it is in the sidebar.php file.

Once you have the file opened, locate the function that populates your categories, it is named wp_list_cats();. This function generates a list of all of your categories that you have associated to each of your posts, if you have not assigned a category to any of your posts, then they all be be placed in the default category: Uncategorized.
A typical category list will looking something like this:

-------------------
| categroy link 1 |
-------------------
| category link 2 |
-------------------
| category link 3 |
-------------------

But, you want your readers to know how many posts you have in each of your categories. Most of the default WordPress functions have the ability to customize it’s query, and the wp_list_cats(); function is no different. In the function, add the string ‘count=1′ to designate that you would like the function to also return a count. So your new category function would look like this: wp_list_cats('count=1');.

Easy enough? Well, Houston, we have a problem. The built-in class that creates the category list adds the count outside of the anchor tag, creating a list that looks very unappealing.

-------------------
| categroy link 1 |
-------------------
(15)
-------------------
| category link 2 |
-------------------
(8)
-------------------
| category link 3 |
-------------------
(25)

In order to achieve a more desirable and more semantic approach, you will need to edit the classes.php file that is located in the wp-includes directory.

Find line 596 in the file:
$link .= $cat_name . '';
Change that to:
//$link .= $cat_name . '';
$link .= $cat_name;
if ( isset($show_count) && $show_count ) {
$link .= ' (' . intval($category->count) . ')';
}

Then go down a few lines and fine the code and comment it out or remove it:
if ( isset($show_count) && $show_count )
$link .= '(' . intval($category->count) . ')';

Now, when you view your category list, it should appear something like this:

------------------------
| categroy link 1 (15) |
------------------------
| category link 2 (8)  |
------------------------
| category link 3 (25) |
------------------------

Nov

12

Amazon S3 Plugin

This WordPress plugin allows you to use Amazon’s Simple Storage Service to host your media for your WordPress powered blog.

Amazon S3 is a cheap and cost effective way to scale your site to easily handle large spikes in traffic (such as from Digg) without having to go through the expense of setting up the infrastructure for a content delivery network. Startup companies are embracing it for their online storage solution, and even bloggers are starting to use it to host their images and other static media (such as mp3 files for their podcasts).

Nov

11

Bad Behavior Spam Killer

Bad Behavior complements other link spam solutions by acting as a gatekeeper, preventing spammers from ever delivering their junk, and in many cases, from ever reading your site in the first place. This keeps your site’s load down, makes your site logs cleaner, and can help prevent denial of service conditions caused by spammers.

Nov

11

flickr rss

This plugin for WordPress allows you to display Flickr photos on your weblog. The plugin supports user, public and group photostreams. It’s easy to setup and configure via an options panel. It also has support for an image cache located on your server.

Nov

11

Post Image

Post Image is a WordPress 2 plugin that displays an image attachment for a post through the plugin’s post_image() (or szub_post_image()) template tag. It’s useful if you want to provide a unique “post image” to each post without having to manage the image references and tags within each post.

Nov

11

Subscribe To Comments

This plugin will allow your readers to get email notifications when comments are left on a post after their own. The install is very simple and does not modify any WP core code. As well, it’s future-proofed to work, as is, with the next version of WordPress without your needing to upgrade the plugin.

Nov

11

Sitemap Generator Plugin

This plugin creates a sitemap for your WordPress powered site. This is not just another XML sitemap plugin, but rather a true sitemap generator which is highly customizable from its own options page in the WordPress admin panel. Some of its features include: support for multi-level categories and pages, category/page exclusion, multiple-page generation with navigation, permalink support, choose what to display, what order to list items in, show comment counts and/or post dates, and much more.

Nov

11

WP-Wap

Browse your WordPress’s blog entries on a Wap enabled mobile phone.