2007/09/28 (Fri)
PB: Adding Tags / Tag Cloud (WP 2.3+)
Tag template page is included in Photo-Biyori 2.x.
Please read step 4 in this page.
WordPress 2.3 has been released and there is an exciting new feature, tags and tag cloud. I tested Photo-Biyori on WP 2.3 and it works fine with no changes. Here is how to add tags and tag cloud page to your PB site. See the sample here.
How to add tags to posts
In index.php and single.php of the Photo-Biyori theme files, Change the code below:
Category: <?php the_category(', ') ?> | <?php comments_popup_link(__('Comments (0)'), __('Comment (1)'), __('Comments (%)')); ?>
to this:
Category: <?php the_category(', ') ?> <?php the_tags('| Tags: ', ', ', ' '); ?> | <?php comments_popup_link(__('Comments (0)'), __('Comment (1)'), __('Comments (%)')); ?>
The template tag for the tags is
<?php the_tags('| Tags: ', ', ', ' '); ?>
See the details on the_tags at WordPress Codex.
How to add tag cloud page to PB
1. Download the template for tag cloud page.
PB-tags.zip
2. Upload tags.php into wp-content/themes/PB folder.
3. At Admin>Write>Write Page, create a new page.
Page Title: Tags (or whatever you like)
Page Template: Tag Archive
The template tag for tag cloud is
<?php wp_tag_cloud('smallest=8&largest=15'); ?>
See the details on wp_tag_cloud at WordPress Codex。









