Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Category Templates

Excellent!

Under "Using Category Templates", I added

The default format is to list the items as excerpts in chronological order, from newest to oldest.  

I think this is right but double check. It sets up the examples to follow when people know the default.

I just cleaned up a few minor things. It is really terrific and a life-saver for a lot of people looking for this same thing...like me!

Lorelle 16:32, 20 Feb 2005 (GMT)

That's a feature of the default Theme (Kubrick) not the WordPress core. I've clarified. Thanks for the help! --MDAWaffe 23:16, 20 Feb 2005 (GMT)

Ah, that took me a minute. The chronological order is from Kubrick not the Category Template feature. Your explanation is fantastic and helps to clarify things. This is wonderful. I'm going to start putting it into play in the next day or so and I'll let you know how badly I screw up from your wonderful examples and instructions...hee hee. Lorelle 03:13, 21 Feb 2005 (GMT)

Well - it's still not perfect then, since the excerpt part is a Kubrick issue, while the chronology is handled by the WordPress core. `:)` --MDAWaffe 06:03, 21 Feb 2005 (GMT)

Maybe I caught this page in mid-fix, but I don't understand the last section "Display Only Excerpts Instead of Full Posts" at all. It looks redundant and odd. Take another look at it, please. Lorelle 21:09, 21 Feb 2005 (GMT)

Well it's a really short example, and not a very good one. It's redundant in the sense that Kubrick's archive.php does this, but not all themes do. --MDAWaffe 05:58, 22 Feb 2005 (GMT)

Okay, maybe I'm getting nitpicking but look at this:

...and using the_excerpt() <?php the_excerpt(); ?>
instead of the_content() <?php the_content(); ?> That's it. 

What's it? Using the excerpt excerpt instead of the content content? See what I'm talking about? It's like, if you are doing what you're doing, do it. If you are doing what you're doing, do that, too. I just feel like there is something missing that would make the flow of this "feel" better. Minor thing but I hate things that get me thinking in loops. Lorelle 14:17, 22 Feb 2005 (GMT)

User question

James Joyner asked:

Question: How does one apply this functionality to the individual posts associated with a category page? That is, if I want all of my "WordPress Hacks" individual archive pages to have their own theme, can I?

moved from Category Templates MichaelH (talk) 17:42, 27 May 2005 (UTC)

Category url not displaying posts within the category

I am having a very hard time trying to figure out why my categories are not displaying the posts within them on the corresponding category page. All I get is this: "Nothing Found. It seems we can’t find what you’re looking for. Perhaps searching can help." I've been searching and cant seem to find a solution. I am running woocommerce and all my product categories work as they should, but the wordpress categories do not work on the front end. I am using the storefront theme, but I have also tried this with the twenty nineteen theme and disabled all plugins to verify it was not related to those. I also have my permalinks setup as "post name". I'm hoping someone can help.