Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mankulito

    (@mankulito)

    still not working. Thanks anyway, i ll try to find different way to split post in columns.

    Thread Starter mankulito

    (@mankulito)

    i have 3 columns. In first i have this:

    <?php query_posts(‘showposts=3’); ?>
    <?php $posts = get_posts(‘numberposts=5&offset=0’); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count1 = 0; if ($count1 == “3”) { break; } else { ?>

    <div id=”post-<?php the_ID(); ?>” class=”post”>
    <div class=”postMeta”>
    <p class=”container”>
    <span class=”date”><?php the_time(‘M j, Y’) ?></span>
    <span class=”comments”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span>
    </p>
    </div>
    <h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
    <div class=”entry”>
    <?php the_content(); ?>
    </div>

    <?php $count1++; } ?>
    <?php endforeach; ?>

    second:
    ————————

    <?php query_posts(‘showposts=3’); ?>
    <?php $posts = get_posts(‘numberposts=5&offset=3’); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count2 = 0; if ($count2 == “3”) { break; } else { ?>

    <div id=”post-<?php the_ID(); ?>” class=”post”>
    <div class=”postMeta”>
    <p class=”container”>
    <span class=”date”><?php the_time(‘M j, Y’) ?></span>
    <span class=”comments”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span>
    </p>
    </div>
    <h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
    <?php the_content(); ?>
    </div>

    <?php $count2++; } ?>
    <?php endforeach; ?>

    and third:
    ——————-

    <?php query_posts(‘showposts=3’); ?>
    <?php $posts = get_posts(‘numberposts=5&offset=6’); foreach ($posts as $post) : start_wp(); ?>
    <?php static $count3 = 0; if ($count3 == “3”) { break; } else { ?>

    <div id=”post-<?php the_ID(); ?>” class=”post”>
    <div class=”postMeta”>
    <p class=”container”>
    <span class=”date”><?php the_time(‘M j, Y’) ?></span>
    <span class=”comments”><?php comments_popup_link(‘0’, ‘1’, ‘%’); ?></span>
    </p>
    </div>
    <h2>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
    <div class=”entry”>
    <?php the_content(); ?>
    </div>

    <?php $count3++; } ?>
    <?php endforeach; ?>

    so, i have 3 columns with 3 posts in each column. Can u please tell what and how i need to change to make older posts work?
    ———-

    Thread Starter mankulito

    (@mankulito)

    When i add this in the end, it is still not working:

    <?php query_posts( array(
          'posts_per_page' => 3,
          'cat' => '',
          'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
     ));
    ?>

    [Please post code or markup snippets between backticks or use the code button.]

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