Thread Starter
Breigh
(@breigh)
Anyone?
This is a support forum, right? 😛
Yes, is is indeed a support forum. Volunteer and free support even! Your patience is appreciated.
When you did your search on this issue, did you notice the various references to the_content vs the_excerpt in The_Loop?
What is this separate page you’ve made? Is it related to something you found in Template_Hierarchy?
Thread Starter
Breigh
(@breigh)
Yeah I did find info on the_content vs the_exerpt but the problem is I have neither of those in the code for my page so I’m confused as to where it goes.
This is my categories archive page:
http://www.breigh.com/wordpress/categories/
The monthly archives are the same just by month.
To be honest, it was absolute ages ago that I made these pages and I can’t remember where I found the code for them. I did find them on this site but when I looked up the templates on here recently they didn’t look the same.
All mine seems to do is call for the list of categories. It doesn’t specify how much of the post to show.
So I’m a bit confused…
What php files are in your theme directory?
Breigh, nice site. Can you tell me where you got the “email this” plugin?
Thread Starter
Breigh
(@breigh)
I made a special categories.php file to create the categories page, is that what you mean? It’s the categories.php and archives.php that I made that make the pages.
This is my categories.php file, I tried changing the_excerpt to the_content but nothing changes.. it still shows only the titles.
<?php
/*
Template Name: Categories
*/
?>
<?php get_header(); ?>
<div id=”page”>
<div id=”content”>
<h1 class=”pagetitle”>Category Archive</h1>
<div class=”entry”>
<div class=”archivepost”>
<?php wp_list_cats(); ?>
<?php the_excerpt(); ?>
</div></div>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
You haven’t started a Loop, so there’s no ‘excerpt’ or ‘content’ to grab.
All the list-cats method does is get a list of categories and links to the archives for each of those cats. It doesn’t fetch the posts themselves.
Content and Excerpt tags need to be placed within the Loop to function. Read more here.