WordPress.org

Ready to get started?Download WordPress

Forums

Where do I add the loop on this page? (1 post)

  1. Kargo
    Member
    Posted 3 years ago #

    Hey guys. I've designed a new page template on my site for country profiles, as you can see here. http://escdaily.com/esc-2011/albania
    The problem is, I want to add a vote up/vote down button to the template but because the template doesnt have the loop, I'm getting the same voting results appear on each page rather then each page having its own results.

    I've tried adding <?php if (have_posts()) : while (have_posts()) : the_post(); ?> to the pages code but whenever I do, the page either disappears or I get a server error in my browser until I remove the code.

    Here is the entire page coding. I would be very grateful if someone could tell me where to insert the loop.
    http://pastebin.com/FV7du6sy

Topic Closed

This topic has been closed to new replies.

About this Topic