WordPress Page Template Specific Code

Posted by on Apr 11, 2013 in Coding, Snippet | No Comments

This will only display the code when a specific page template is used.

Great for header/footer interjections.

<?php if( !is_page_template(‘template-name.php’) ) : ?>
//your code here
<?php endif; ?>