• Resolved kohaku

    (@kohaku)


    I’ve been working with my archives for awhile now and I can’t figure out how to get this one part to work.

    On category archives, I can only get one post to show. On month archives, I get multiple, like I want.

    No matter what, I can’t get the category to display more than one.

    Any ideas??

Viewing 7 replies - 1 through 7 (of 7 total)
  • There is something wrong in your template file that displays category archives.
    Or they are inheriting some more general setting.

    Thread Starter kohaku

    (@kohaku)

    My archives.php is the template file. Here is the main chunk:

    <div id="content">
    
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    <h2>Archives by Month:</h2>
    	<ul>
    		<?php wp_get_archives('type=monthly'); ?>
    	</ul>
    
    <h2>Archives by Subject:</h2>
    	<ul>
    		 <?php wp_list_categories(); ?>
    	</ul>
    
    </div>

    My archive.php is the display coding for how it looks, layout wise.

    I don’t know what the issue would be.

    You are mixing stuff…
    Time to read: Template_Hierarchy.
    archive.php and archives.php (with S) are two [2] different things. Don’t mix them!

    archives.php – in many themes is a Page template, like any other custom Page template, while archive.php is the default template file (recognized by WP if present) to display… well, archives: monthly or by category.

    Thread Starter kohaku

    (@kohaku)

    Oh… maybe I should switch the coding and see what happens.

    Thanks.

    Thread Starter kohaku

    (@kohaku)

    Well, that kind of helped, but now when I click on the month to see the posts, it just takes me back to the same page with the list of months and categories.

    Thread Starter kohaku

    (@kohaku)

    I think I figured it out. Thank you anyway.

    Thread Starter kohaku

    (@kohaku)

    I figured out the month display issues, but I still can’t get the category to display more than one. Is there some code I need to put in to get category archives to display more?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Archive display problem’ is closed to new replies.