• Hi I have a question regarding seperating pages in Word Press. Basically my setup is like this:

    – First page shows 1 news item only
    – Category pages shows 5 news items and I want it to show Previous/Next links for those older news items.

    I got it working with this:

    <?php //Shows Next and Previous on All-News page
    if ($cat == 6 | $cat == 11)
    {next_posts_link(‘<p class=”left”>« Previous Entries</p>’);
    previous_posts_link(‘<p class=”right”>Next Entries »</p>’);
    echo (‘<div class=”fix”></div>’);}
    ?>

    However, with that solution I have to add the individual categories like 6 and 11 for the Previous/Next buttons to show up.

    I’m thinking that a better solution would be if there was a way I could call it so “IF NOT IS_HOME() THEN SHOW NEXT/PREVIOUS links”

    Can anyone help me do that? I’m still learning PHP so these if/else statements with the wordpress jargon is difficult for me.

    Thanks!

  • The topic ‘Can’t Seperate Pages W/O Messy Solution’ is closed to new replies.