Support » Themes and Templates » My “Loop” Code Works, But Paging Isn’t Quite Right…

  • Resolved Robert Chapin


    Hi, I am writing my very first template. For each post it shows only the attachments by using get_children(). This is working great so far.

    The problem is, I think I’ve put this code in the wrong spot. I put it in a “Page” by selecting it as a custom template. When I did this, none of the posts would show up in the loop, so I added query_posts(”); before the first have_posts() call. This made everything show up, yay 🙂

    BUT the page links don’t work, boo 🙁 The links show up and add /page/2/ to the URL, but then I get the posts starting from the beginning again on that page. So I must have overlooked something really obvious? Is a “Page” the wrong place to put this?

    I look forward to your feedback 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘My “Loop” Code Works, But Paging Isn’t Quite Right…’ is closed to new replies.