Forums

How come I can't have two get posts on a sinlge page? (1 post)

  1. soleman
    Member
    Posted 2 years ago #

    I've done this before - but I forget what I did. Here is what I'm looking to do - grab 10 post images from one category before grabbing the single post info. This is on single.php. Right now the 10 posts images show up but then the main post below doesn't.....

    <div class="box4">
    <h2>What Did You Ball In Today? </h2>

    <ul class="list1">
    <?php
    $the_query = new WP_Query('cat=3583&showposts=10&orderby=post_date&order=desc');
    while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
    ?>

    "><img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=53&w=85&zc=1&q=80" alt="<?php the_title(); ?>"/>

    <?php endwhile; ?>

    </div>

    <div class="grid_4 alpha">

    <p class="post_meta"><span class="ko"><?php echo get_post_meta($post->ID, "ko_text", $single = true); ?></span></p>
    <p class="post_meta"><span class="date">Posted on <?php the_time('F jS, Y') ?></span></p>
    <p class="post_meta"><span class="details">Archived in <?php the_category(', ') ?></span></p>
    <p class="post_meta"><span class="comments">Leave a comment</span></p>
    <div style="clear:both;height:20px;border-bottom:1px solid #eee;margin-bottom: 20px;"></div>

    <h4 class="tags">Tags</h4>
    <?php the_tags('', ', ', '
    '); ?>

    <div style="clear:both;height:10px;border-bottom:1px solid #eee;margin-bottom: 20px;"></div>

    <div class="navigation">
    <div class="previous">
    <h4>Previous Post</h4>
    <p><?php previous_post_link('%link') ?></p>
    </div>
    <div class="next">
    <h4>Next Post</h4>
    <p><?php next_post_link('%link') ?></p>
    </div>
    </div>

    <div style="clear:both;height:10px;border-bottom:1px solid #eee;margin-bottom: 20px;"></div>

    </div>
    <div id="main" class="grid_12 omega">

    <div class="entry">

    <?php the_content(); ?>

    <?php edit_post_link(__('Edit this post.'), ' - ', ''); ?>

    </div>

    <div class="author_info">

    <p>This post was written by: <?php the_author_posts_link(); ?> - who has written <?php the_author_posts(); ?> posts on /">Sole Collector.</p>

    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags