• Email
  • Twitter
  • RSS

386.307.4289

  • Home
  • Services
  • Portfolio
  • Contact Us
  • Blog
SEO@DreamDrivenDesigns.com
  • About Dream Driven

    Need an Attractive yet Professional Website? We offer complete custom website designs for businesses & professionals.

  • My Online Status

  • Web Design Tags

    amp anchor text blog Bookmark category click com Domain Don Dwayne Dwayne Myers email e mail account File Google html titles impressive work Jonathan Leon lt mail account name name new e mail account N If Page php post Problem quot Search search traffic service span class Template theme theme editors tmpPost traffic turnaround URL Web website wordpress work WOW Yahoo

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • Subscribe to our Blog

    Enter your email address:

    Delivered by FeedBurner

  • Clients Testimonals

    • Carolyn from ArtsyShark Testimonal
    • JML Trading Testimonal
    • Marc from Bopaintball Testimonial
    • Jonathan's Website Testimonal
    • Custom Web Service
  • Recent Posts

    • 10 Essential Wordpress plugins for your Blog
    • Changing The Site URL in Wordpress
    • Chinese Characters in Wordpress
    • Wordpress Template Files Heirachy & Stucture
    • Wordpress Category Heirarchy Structure
  • Categories

    • Customer Testimonials
    • General Blog Posts
    • SEO Resources
    • Solved Common Website Problems
    • Wordpress Tutorials and Tips

WordPress Category Heirarchy Structure

By Dwayne on Wednesday, December 9th, 2009

Tweet this! StumbleUpon Digg This! Bookmark on Delicious Bookmark on Delicious Bookmark on Delicious Bookmark on Delicious Bookmark on Delicious Bookmark on Delicious Google Buzz

In the case of categories, the hierarchy is fairly simple. For instance,
suppose the slug of the Category in question is default and the Category
ID is 6. The Template Hierarchy specifies that WordPress will use the
first Template file it finds in your current Theme’s directory from the
following list:

1. category-slug.php (Note: available with Version 2.9)
2. category-ID.php
3. category.php
4. archive.php
5. index.php

That is, if you do not have a category-slug.php (lets say
category-news.php), WordPress will check for a category-ID.php (like
category-6.php), and so on.

So, if you want to make the Category whose ID number is 6 look different
from what it is currently (and different from other Category pages), you
would want to create a category-6.php file. If you want to make all
Category pages look different from other archive pages (such as date and
author archives), then you would want to create or modify the
category.php file. If you want to make changes to the look of all
archive pages, you can create or modify the archive.php file. And if you
modify the index.php file, you will affect your entire blog.

If you need to create a new file, it is a good idea to copy it from the
next file in the hierarchy that exists. For instance, if you want a
special display for Category 6, begin by copying the category.php file,
or if you don’t have one, use archive.php, and so on.

–
Dwayne Myers
(386)307-4289
Http://www.DreamDrivenDesigns.com


This was filed under Wordpress Tutorials and Tips. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


Leave a Comment


Comment


  • « Older Entries
  • Newer Entries »
Our Services
Web Design for Businesses
Website Development Projects
Business Website Hosting
Wordpress Technical Support
PHP Programming
MySQl Databases
More about us
DreamDrivenDesigns is a Professional Web Design Company that specialize in Wordpress Projects that combine Beautiful Designs with Current Technology.
Business Services
Every great Business Idea takes wings with the launch of a Professionally Designed Website. The Internet has redefined the way how Businesses do transactions and your Website is the Gateway to make use of these new Opportunities.
  • Amazon Travel Club
  • ANK Inspections
  • Black Ops PaintBall
  • Local Politics 101
  • Sudz-N-Dudz
  • Trade With Volume
  • TradeLineList
  • Web Design Planner
Copyright © 2010 DreamDrivenDesigns.com, Designed by DreamDrivenDesigns.com