[resolved] My "Loop" Code Works, But Paging Isn't Quite Right... (2 posts)

  1. Robert Chapin
    Posted 7 years ago #

    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 :)

  2. Robert Chapin
    Posted 7 years ago #

    For lack of a better, more immediate solution, I've decided to parse the URI manually. It's ugly but it works!

Topic Closed

This topic has been closed to new replies.

About this Topic