• im trying to use get_post in my navigation, but if you put it in the loop before the post title, author etc. it just keeps the last post you called up and doesnt give you the most recent information.

    for example, if you call up the past 10 posts, the title for every article is the 10th posts’.

    is it possible to ‘refresh’ the post variables to use them twice in the loop?

Viewing 1 replies (of 1 total)
  • Thread Starter freshpolitics

    (@freshpolitics)

    ok, that was written at 3am after a plethora of problems, let me interpret:

    I am trying to use the get_post$ function to call up the titles of the past 15 or so articles. This presents a problem if you try to do this before printing the title and author on the page.

    In my example, I am trying to get the past posts on my nav header, which is above the regular content (both in code and visually). When I try to print my post after this, the title of the last article called up by get_post$ is displayed instead of the most current one. It also knocks the previous and next_post nav out of whack.

    Can anybody please help? I am looking for some way to ‘refresh’ the variables such as title, author, date, etc after the initial loop sequence. It seems like there has to be some sort of way to have two loops on a page, despite what past topics indicate.

    THANK YOU!

Viewing 1 replies (of 1 total)
  • The topic ‘get_post problems’ is closed to new replies.