WordPress database error: [Got error 28 from storage engine]
SELECT t.*, tt.*, tr.object_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag') AND tr.object_id IN (73) ORDER BY t.name ASC

wordlog.com » Displaying Titles on Category Pages

A weblog authored by Carthik about the latest in the WordPress world.

Friday, August 20, 2004

Displaying Titles on Category Pages

Filed under: Uncategorized — Carthik @ 12:58 am

Stuart again.

This time, he writes a neat little tutorial to explain how to display the name of the category as the title on category pages.

He writes :

There are a few “functions” that already exist in WordPress which can be put to good use if you know about them.

Oh yes. There are are quite a few Template Tags that I have rarely, if ever, seen used. The reason could be that most users, including your’s truly, are, for the most, satisfied with what’s in the default WordPress weblog, in terms of template tags.

This tutorial, by Stuart, does a good job of explaining how to check if the page displayed is of a kind (a category page in this case) and to display something only on those pages. The forthcoming version of WordPress will have more “markers” like $cat, for pages, to help in the identification of the kind, or type of page being displayed. Just so you can customize your pages all you want.


  1. Good on that man!

    Comment by Hanni — 8/20/2004 @ 6:46 am

  2. WordPress 1.3 will have is_category(), is_date(), is_single(), is_archive(), is_author(), is_search(), is_feed(), and is_home().

    Comment by Ryan Boren — 8/20/2004 @ 7:45 pm

  3. Thanks, Ryan.

    Comment by Carthik — 8/20/2004 @ 7:54 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.


Powered by WordPress

eXTReMe Tracker