WordPress.org

Ready to get started?Download WordPress

Forums

Posts not displaying when clicked, with double loop (2 posts)

  1. Nourdmrolnmt1
    Member
    Posted 7 years ago #

    Okay, i have a double loop, one runs the left sidebar which will display only one sort of post and then the other the main... the code looks like this...

    <?php $index_query = $wp_query; ?>
    (include)
    (include leftbar.... code entered here)
    <?php query_posts("cat=5"); ?>
    (do the loop)
    (end the loop)
    (return back to index.html...
    <?php $wp_query = $index_query; ?>
    (do the loop)
    (end the loop)
    pageend

    now, to me it seems fine and dandy. however, when you click on a non cat 5 post, the index decides to display ONLY the cat 5 posts. however, when you click on a cat 5 post, it also will change the index to that...

    what i want to accomplish is to have that blog entry display, not jst mess around with my index page. and i dont know how to fix it. if you dont understand what is happening, let me know and i will post the website, i really dont want to though

  2. Nourdmrolnmt1
    Member
    Posted 7 years ago #

    anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags