Created
August 10, 2016 15:59
-
-
Save cagriuckan/cbd8f00d5ef4b0a4e1d9fc04bccc5171 to your computer and use it in GitHub Desktop.
Wordpress custom post tyle search.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$post_type = $_GET['post_type']; | |
if ( isset( $post_type ) && locate_template( 'search-' . $post_type . '.php' ) ) { | |
get_template_part( 'search', $post_type ); | |
exit; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment