Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bmerikal

    (@bmerikal)

    Thanks for the idea of using a Page instead of trying to force my category template to do what it didn’t want to do. Right now it’s showing only one post from the ‘current’ category, but it’s showing it twice.

    My code looks this:

    <!--Get only the most recent post from the current journal-->
    <?php query_posts('category_name=current&showposts=1'); ?>
    <!--The Loop-->
    <?php while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
    			<?php the_title(); ?></a></h2>
    		<p><?php the_time('F jS, Y') ?></p>
    		<?php the_content('Read the rest of this entry &raquo;'); ?>
    	</div>
    <?php endwhile; ?>
    <!--End of The Loop-->
    <a href="/travel-journal/current/">Continue reading current travel journal &raquo;</a>

    Any idea why that might be? (I’m using the Exec-PHP plugin, so that might be the cause of the error.)

    Thanks,

    Bill

    Thread Starter bmerikal

    (@bmerikal)

    Hi, jessn,

    Thanks for taking the time to help.

    How do I do that if my travels Category is ID7? In other words, how do I make WP only load say 5 posts on the main travels page, and then load 30 on subsequent pages within the same Category?

    Or rather, how do I make it use category-7.php for the first page and then some other category template for subsequent pages? Or, is there a way to make display a different number of posts using just category-7.php? (I got the all or none taken care of with this bit:
    posts_per_page=-1

    Thanks again,

    Bill

    Thread Starter bmerikal

    (@bmerikal)

    Anyone?

    Is it possible to show X number of posts on a Category main page and then show Y number of Posts on that Category’s subpages?

    I’m stymied. Any and all help, even if it’s just, “Nope” is appreciated.

    Thanks,

    Bill

    Thread Starter bmerikal

    (@bmerikal)

    Actually, I suppose my question should be:

    How do I show X number of posts on a Category main page and Y number of posts on that Category’s subpages?

    Is there a plug-in for this? (I’m not looking to show a different number of posts in different Categories, but rather within the same Category.)

    Is this possible? Anyone?

    Thanks,

    Bill

Viewing 4 replies - 1 through 4 (of 4 total)