Visual Categories Plugin »

Description

Plugin Download: Local: Visual Categories Plugin | WordPress: Visual Categories Plugin
Current: Version 1.6.0
Required: PHP >= 4.3.0 & WordPress 2.7.x – 2.8.x

Take control over the way you display your categories: This plugin enables you to build “category entries” which contain a link to the category and which may contain a link to the category’s feed, an image, the timestamp of when the category was last updated, and the current count of posts in the category.

Versions

Version 1.6.0: Added ordering by timestamp of most recent post.
Version 1.5.5: Version number was not updated in 1.5.4. Oops!
Version 1.5.4: Stripper & PHP 4 compatibility issue resolved.
Version 1.5.3: Stripper & PHP 4 compatibility issue resolved (probably).
Version 1.5.2: Covered for WordPress quirks.
Version 1.5: Bugs fixed and WordPress 2.8 compatibility established.
Version 1.0: First public release.

To Do

  • Allow multiples instance of widget, each with unique settings.

Vocabulary

There are a few terms used throughout this guide that require explanations: Continue reading »

• • •

Custom List Categories Plugin (Obsolete) »

Important: This plugin is no longer in development and has been replaced by the Visual Categories Plugin. The information below has been changed to reflect the Visual Categories Plugin information.

Description

Plugin Download: Visual Categories Plugin
Current: Version 1.0
Required: PHP >= 4.3.0 & WordPress 2.7.x

Take control over the way you display your categories: This plugin enables you to build “category entries” which contain a link to the category and which may contain a link to the category’s feed, a feed (RSS) image, the timestamp of when the category was last updated, and the current count of posts in the category.

Versions

Version 1.0: First public release.
Version 1.5: This release will be WordPress 2.8 compatible.

Vocabulary

There are a few terms used throughout this guide that require explanations: Continue reading »

• • •

Wordpress List Categories Hack (Updated 4/5/09) »

Update 4/5/09: All that’s documented on this page can be done via my custom list categories plugin.

Update 1/30/09: If you don’t want to edit your Wordpress files, check out my custom list categories function.

If you’re a web designer/programmer like I pretend to be and you also use Wordpress, you eventually discover that, though it’s an awesome weblog platform, Wordpress suffers from inconsistently and poorly constructed functions that may hinder the implementation of your design goals.

Two such functions involve category construction. My categories are listed horizontally almost midway down the “top of the fold” section. In order to achieve my desired design, I had to hack two Wordpress files. Here’s what I did:

Open wp-includes/category-template.php

On line 277 find:

'echo' => 1, 'depth' => 0

Replace with:

'echo' =&gt; 1, 'depth' =&gt; 0, 'before' =&gt; '<li>', 'after' =&gt; '</li>',
'link_before' =&gt; '', 'link_after' =&gt; ''

These additions to the wp_list_categories function will increase your design flexibility so that, when your style variable is set to 0 or none, you can specify what comes before and after the anchor element and what comes before and after the text that is contained within the anchor element.

Next, we have put those variable somewhere. Open wp-includes/classes.php

On lines 625 and 626 find:

$link .= '&gt;';
$link .= $cat_name . '';

Replace with:

if ( 'list' == $args['style'] )
$link .= '&gt;' . $cat_name . '';
else
$link .= '&gt;' . $link_before . $cat_name . $link_after . '';

On line 678 find:

$output .= "$link";

Replace with:

$output .= $before . $link . $after;

So, to get this working, to one of your theme display files (such as header.php or sidebar.php) add

The code that is outputted is

<a href="/path_to/category">» Category «</a>

That’s it! Don’t be afraid to play around with it and add your own variables.

• • •