Forums

loop on a page - mixed results (3 posts)

  1. asquare
    Member
    Posted 1 year ago #

    hi

    I'm using a posts loop on a page but when I call the_title(); for each post title I am getting the page title, I guess this is because it's a loop inside a loop. Is there a way to clear the page variables so they won't be confused with the post variables? I'm not having much luck with finding this in the codex.

    a+
    gar

  2. asquare
    Member
    Posted 1 year ago #

    opps never mind, resetting $post seems to do the trick now I've actually made template pages.

    a+
    gar

  3. StMaSi
    Member
    Posted 1 year ago #

    Can you share your solution? I think my problem is similar, if not the same.

    Thanx.

Topic Closed

This topic has been closed to new replies.

About this Topic