Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( $wp_query->query_vars['post_type'] == 'event' ) {
- $search_query = get_search_query();
- query_posts( 's=' . $search_query . '&post_type=event&posts_per_page=' . get_option('posts_per_page') );
- }
- ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php if ( $post->post_type == 'event' ) {
- get_template_part('templates/content', 'sr-event' );
- } else {
- get_template_part('templates/content', 'list' );
- }
- ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement