• Resolved jtp6687

    (@jtp6687)


    hi everyone,

    I’ve been editing & updating a wordpress Blog+Portfolio using F8 Lite. Slideshow works great. Thumbnails work great. But the home page is only showing 4 ‘recent posts’. Every time I add a new one, it gets added to the first row/first column and everything else moves over one slot. I’d like to get 2 rows of 3 entries on there. Any ideas?

    https://EveryDayPuck.com

    Jason.

Viewing 5 replies - 1 through 5 (of 5 total)
  • have you checked the settings in admin – settings – reading: blog pages shown at most ?

    or other settings in the theme options (if the theme has options) ?

    if that does not work, you probably need to edit index.php and see if there is a query restricting the numbers of post per page shown.

    Thread Starter jtp6687

    (@jtp6687)

    yes I have. Blog pages I have at 9. There are no ‘options’ for the theme. I can’t tell in index.php what would be restricting the numbers…here’s what it looks like:

    <?php get_header(); ?>

    <?php if (have_posts()) : ?>

    <?php $i = 0; ?>
    <?php while (have_posts()) : the_post(); $i++; ?>
    <div class=”span-8 post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>”>
    <h6 class=”archive-header”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title() ?></h6>
    <?php
    $values = get_post_custom_values(“thumbnail”);
    if (isset($values[0])) {
    ?>
    ” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img src=”<?php $values = get_post_custom_values(“thumbnail”); echo $values[0]; ?>” alt=”” />
    <?php } ?>
    <?php the_excerpt(); ?>
    <p class=”postmetadata”><?php the_time(‘M d, Y’) ?> | <?php comments_popup_link(‘Have your say »’, ‘1 Comment »’, ‘% Comments »’); ?></p>
    </div>
    <?php if ($i == 3) { ?><div class=”archive-stack clear”></div><?php $i = 0; } ?>
    <?php endwhile; ?>

    <div class=”clear”></div>

    <div class=”navigation”>
    <div><?php next_posts_link(‘« Older Entries’) ?></div>
    <div><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>

    <?php else : ?>

    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn’t here.</p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>
    <?php include (TEMPLATEPATH . “/bottom.php”); ?>
    <?php get_footer(); ?>

    MY guess is it has something to do with the variable $i , did you define it?

    you could try and echo the number of posts per page before the loop:

    <?php get_header(); ?>
    
    <?php echo $set_showpost; ?>
    
    <?php if (have_posts()) : ?>

    and then try to set the number of post per page in a query – see if that changes anything.

    <?php get_header(); ?>
    
    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts($query_string.'&posts_per_page=9&paged='.$paged); ?>
    
    <?php if (have_posts()) : ?>
    Thread Starter jtp6687

    (@jtp6687)

    turns out the variable was being defined from another php and wouldn’t get bigger than 4. It’s been fixed and now works great. Thanks everyone.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Home Page Only Shows 4 Recent Posts Below Main Nav’ is closed to new replies.