Title: Single.php by tag
Last modified: August 19, 2016

---

# Single.php by tag

 *  [microtag](https://wordpress.org/support/users/microtag/)
 * (@microtag)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/singlephp-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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [microtag](https://wordpress.org/support/users/microtag/)
 * Last activity: [16 years, 2 months ago](https://wordpress.org/support/topic/singlephp-by-tag/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
