11 April

WordPress Page Template Specific Code

Posted by 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; ?>