Posted By

rc2789 on 11/14/10


Tagged

textmate wordpress


Versions (?)

if, elseif, else


 / Published in: Other
 

  1. <?php if ( is_page('1') ) { ?>
  2. <!-- enter something here -->
  3.  
  4. <?php } elseif ( is_page('2') ) { ?>
  5. <!-- enter somthing else-->
  6.  
  7. <?php } else { ?>
  8. <!-- something else -->
  9.  
  10. <?php } ?>

Report this snippet  

You need to login to post a comment.