• Resolved mYrAn

    (@myran)


    Hi!

    Im dont know php so making this simple if proved to be not so easy. I want it to do this: if the page id is lets say 12 OR 15 OR 23 OR 41 then echo this long bit of htmlcode, if it’s not any of those above – echo this other long bit of htmlcode.

    Thanks!

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

    (@myran)

    I figured it out myself!

    <?php if( is_page(array(81, 52)) ):?>
    code here
    <?php else: ?>
    else code here
    <?php endif; ?>

    Hope thats a legit way of doing it!

Viewing 1 replies (of 1 total)

The topic ‘Simple $page_id if help’ is closed to new replies.