Single.php by tag
-
It’s possible change single by tag?
Example:
<?php
$post = $wp_query->post;
if ( is_tag(‘video’) ) {
include(TEMPLATEPATH . ‘/single_video.php’);} else {
include(TEMPLATEPATH . ‘/single_post.php’);
}
?>Thanks
The topic ‘Single.php by tag’ is closed to new replies.