How to Change the Appearance of Category Index Pages


show more Changing the appearance of category index pages provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes show less
please wait ...

Changing the appearance of category index pages

WordPress has multiple different index templates that kick in when different indexes are called, the most notable-- and the ones you should see in pretty much every WordPress theme--are index.php, category.php, tag.php, and archive.php. The names are self-explanatory. Sometimes you want different index pages to appear differently in your sites. I often find that while on the main index page it makes sense to have longer versions of the posts, with images and full text, on category and archive index pages it makes more sense to have shorter versions and maybe no images.

This can be accommodated by calling for an excerpt instead of the content of a post when the category or archive templates are used. If you look at the site the way it is now, you can see that on the front page, or the main index page, we have the full post, web images, and if there's a featured image, the featured image appears at the top. If we go to the category archive page, we'll see the exact same thing. Here w...

Changing the appearance of category index pages
Video duration: 5m 44s 3h 11m Intermediate Updated Nov 27, 2012

Viewers:

Changing the appearance of category index pages provides you with in-depth training on Web. Taught by Morten Rand-Hendriksen as part of the WordPress 3: Building Child Themes

Subject:
Web
Software:
WordPress
Author:
please wait ...