The MU forums have moved to WordPress.org

make plugin output use css (1 post)

  1. demonicume
    Member
    Posted 15 years ago #

    a theme i've been modifing to use as my site page use's this to display blog posts:

    <div id="maincontainer">
    <div class="content">
    <?php
    $wp_query->set('posts_per_page', 2);
    $wp_query->set('posts_per_archive_page', 2);
    $posts_per_page = 2;
    $posts = $wp_query->get_posts();
    while ( have_posts() ) : the_post(); $counter++; if($counter == 1) { ?>
    <div id="postone">
    <h2>"><?php the_title(); ?></h2>

    <div class="post">
    <?php the_content(); ?>
    <p class="postdata"><?php the_time('F jS, Y') ?> | <?php the_category(', ') ?> | "><?php comments_number('No comments', '1 comment', '% comments'); ?></p>
    </div>
    </div>

    <?php } else { ?>
    <div id="posttwo">
    <h2>"><?php the_title(); ?></h2>
    <div class="post">
    <?php the_content(); ?>
    <p class="postdata"><?php the_time('F jS, Y') ?> | <?php the_category(', ') ?> | "><?php comments_number('No comments', '1 comment', '% comments'); ?></p>
    </div>
    </div>

    it puts the most recent post in the first column and ten all the rest in the second column. i've been trying to get the List-All Posts plugin to work with this. up until now, when i wanted to use a plugin, i simply commented out/erased the loop. my question is thus:

    any hints on how i get the output from the recent posts comment to follow the CSS?

About this Topic

  • Started 15 years ago by demonicume