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 get_header(); ?> | |
<!-- Sidebar --> | |
<?php get_sidebar(); ?> | |
<!-- End Sidebar --> | |
<?php get_footer(); ?> |
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
if(function_exists('register_sidebar')) { | |
register_sidebar(array( | |
'name' => 'Sidebar', | |
'before_widget' => '<aside id="%1$s" class="widgets %2$s">', | |
'after_widget' => '</aside>', | |
'before_title' => '<div class="widget-title"><h2 class="title">', | |
'after_title' => '</h2></div>', | |
)); | |
register_sidebar(array( | |
'name' => 'Sidebar2', |
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; | |
} | |
?> |
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
<!-- uckan.net - WordpressCustom Post Tyle Search Form --> | |
<form class="search" action="<?php echo home_url( '/' ); ?>"> | |
<input type="search" name="s" placeholder="Search…"> | |
<input type="submit" value="Search"> | |
<input type="hidden" name="post_type" value="post-type-ismi"> | |
</form> |
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
<!-- uckan.net - Standart Wordpress Search Form --> | |
<form class="search" action="<?php echo home_url( '/' ); ?>"> | |
<input type="search" name="s" placeholder="Arama"> | |
<input type="submit" value="Search"> | |
</form> |
NewerOlder