Wordpress basic conditional


/ Published in: PHP
Save to your folder(s)

If contents is "page-name" do stuff


Copy this code and paste it in your HTML
  1. <?php if (! is_page ('your-page-name')) { ?>
  2. // do stuff
  3. <?php } ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.