Viewing 1 replies (of 1 total)
  • You can use exactly the same technique. So in your example, you would use:

    <?php if ( is_post_template('schools.php') ) { ?>
    	<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ?>/schools.css" />
    	<?php } ?>

    According to the changelog, is_post_template() was added in version 1.2.

Viewing 1 replies (of 1 total)
  • The topic ‘What will be the equivalent of is_page_template( ) function?’ is closed to new replies.