Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function tall_homes_override( $template ) {
- global $wp_query;
- $post_type = get_query_var( 'post_type' );
- if ( $wp_query->is_single && $post_type == 'tall_homes' ) {
- return locate_template( 'single.php' );
- }
- return $template
- }
- add_filter( 'template_include', 'tall_homes_override' );
Add Comment
Please, Sign In to add comment