• I’ve set up a very cool projects Page that is using 2 separate loops. Well it will be extremely cool when I get it working properly…

    Up top, in my header, I have a post selector that allows the user to scroll through a line of thumbnails (posts) from just the projects category. Using query_posts, I have this feature working perfectly.

    <?php query_posts('post_type=post&order=asc&category_name=Projects'); ?>
    
    <div id="page">
    	<div id="slider">
    		<div class="scrollButtons scrollMeLeft"><a><span>previous</span></a></div>
    			<div class="scroll">
    			<div class="scrollContainer">
    <?php while (have_posts()) : the_post(); ?>
    				<div class="panel" id="<?=$post->post_name?>">
    
    <a href="<?php the_permalink() ?>">
    <?php the_excerpt_rss(); ?>
    </a>
    
    				</div>
    <?php endwhile;?>
    			</div>
    		</div>
    
    		<div class="scrollButtons scrollMeRight"><a><span>next</span></a></div>
    
    	</div>
    </div>

    Down in the body of the page, I’m treating it just like any other single post page, but with the selector still in the header.

    The problem I’m having is that when the 2nd loop runs, it’s pulling all the posts from the selector, and not just the single post that was selected. How can I set the second loop to run a new query as if it is a single post?

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

    (@echstudios)

    Anybody?

    Maybe I need to move it to Advanced…?

    I think expecting a response within 32 minutes fully answering a query is a bit much, and is also rather arrogant. A bit of patience may help…

    Thread Starter echstudios

    (@echstudios)

    My apologies for sounding arrogant.

    However, in my short experience as a member of this “community”, people are not very eager to help. I’d value an answer of “I don’t know” or “You sound arrogant, be patient” over no answer at all.

    So now its 12 hours later, and what do you know… still no reply. Perhaps some one will go digging through the archives next month and decide to give an answer a go. I think we all know they won’t.

    Or maybe I can just ask a legitimate yes or no question in the meantime, and at the very least, keep my post somewhat visible to all the folks who will probably still just look over it anyway.

    Time is money my friend. Patience is no virtue in my life. But I guess as all things go… to each his own.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Running 2 loops, very cool’ is closed to new replies.