Showing post in category and arvhives (8 posts)

  1. Breigh
    Posted 9 years ago #

    My blog is at http://www.Breigh.com I use the theme Bosco 1.0 + Widgets at the moment.

    I'd rather have it show the ENTIRE post when looking at an archive rather than just the title.

    For example, if you go here (random site I found on google with the same theme as my old one) http://onetoughvoncookie.com/?cat=160 you can see that when you click a certain category it shows all the posts in that category in order, rather than just the post titles as you see in mine.

    This is what I'm trying to achieve.

    I've made a separate page for my archives by month and archives by category, I just need to know what code I need to put in and where to put it to make it show the full posts rather than just the titles.

    Thanks a lot for your help!

  2. Breigh
    Posted 9 years ago #

    This is a support forum, right? :P

  3. Chris_K
    Posted 9 years ago #

    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?

  4. Breigh
    Posted 9 years ago #

    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:

    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...

  5. Chris_K
    Posted 9 years ago #

    What php files are in your theme directory?

  6. jamaaljayz
    Posted 9 years ago #

    Breigh, nice site. Can you tell me where you got the "email this" plugin?

  7. Breigh
    Posted 9 years ago #

    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.

    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(); ?>



    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  8. stml
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic