pagination: Only one result is shown even if there are more than one?
Lets clean this up: <h2> <?php $num = $wp_query->post_count; if (have_posts()) :?> <a href=”https://wordpress.stackexchange.com/questions/190595/<?php the_permalink(); ?>”><?php the_title();?></a> <?php endif;?> <?php $search_count = 0; $search = new WP_Query(“s=$s & showposts=5”); if($search->have_posts()) : while($search->have_posts()) : $search->the_post(); $search_count++; endwhile; else : ?> <?php next_posts_link(); ?> <?php previous_posts_link(); ?> <p> there were no results </p> <?php endif;?> </h2> Lets … Read more