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


You need to login to view comments.