Skip to main content

Timeline for Search results sorted by post types

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Aug 1, 2013 at 7:34 answer added Vladimir timeline score: 1
Nov 17, 2012 at 14:04 answer added Mateusz Hajdziony timeline score: 0
Nov 17, 2012 at 5:52 comment added mygm Then the second loop which is the same for all the others except the post type name -- <?php $args = array( 'post_type' => 'videos', 's' => $s ); ?> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post() ?> //My divs <?php endwhile; endif; ?> <?php wp_reset_postdata(); ?>
Nov 17, 2012 at 5:51 comment added mygm Ok sorry. The reason why I did that because I wasnt sure which code on the page was affecting the loops. This is a little above the first loop <?php global $wp_query; $total_results = $wp_query->found_posts; ?> This is the first loop <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post() ?> //My divs// <?php endwhile; endif; ?> <?php wp_reset_postdata(); ?>
Nov 17, 2012 at 3:05 review First posts
Nov 17, 2012 at 3:20
Nov 17, 2012 at 3:01 comment added Mateusz Hajdziony Your code is unreadable, there is no need to paste the entire template. Can you please post the code here, but only contain the necessary parts, like loops, without all your divs and styling?
Nov 17, 2012 at 2:45 history asked mygm CC BY-SA 3.0