Posted By

akmuraro on 06/03/12


Tagged

php wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

akmuraro


Wordpress basic conditional


 / Published in: PHP
 

URL: http://alexmuraro.me/posts/wordpress-code-snippets

If contents is "page-name" do stuff

  1. <?php if (! is_page ('your-page-name')) { ?>
  2. // do stuff
  3. <?php } ?>

Report this snippet  

You need to login to post a comment.