Forums

index.php multiple loop for different pages. (3 posts)

  1. deano89
    Member
    Posted 2 years ago #

    hi, im pretty new to all this wordpress stuff and could do with some help.
    I'm trying to code an index.php that has 1 loop for a 'News' page and 1 loop for a 'Portfolio' page.
    Although I want both loops to do the same thing (display 5 posts),
    how do code it so it differentiates between the 'News' page and 'Portfolio' page.

    thanks in advance.

  2. deano89
    Member
    Posted 2 years ago #

    anybody help me with the if_page('so on')
    would this help me with what i'm after.
    thanks`

  3. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic