while (have_posts()) { the_post(); get_template_part('template/question', 'loop'); } } else { echo '<h2>'; _e('No questions has been created yet.', ET_DOMAIN); echo '</h2>'; } wp_reset_query(); ?> </ul> </div><!-- END MAIN-QUESTIONS-LIST --> <div class="row paginations home"> <div class="col-md-12"> <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; qa_template_paginations($wp_query, $paged); ?> </div> </div><!-- END MAIN-PAGINATIONS --> <div class="clearfix"></div> <?php do_action('qa_btm_questions_listing'); ?> </div> <?php get_sidebar('right'); get_footer();
$args['posts_per_page'] = $_GET['numbers']; } $search_query = new WP_Query($args); if ($search_query->have_posts()) { while ($search_query->have_posts()) { $search_query->the_post(); get_template_part('template/question', 'loop'); } } else { echo '<h2>'; _e('No results for keyword:', ET_DOMAIN); echo '<strong><em>' . esc_attr($keyword) . '</em></strong>'; echo '</h2>'; } wp_reset_query(); ?> </ul> </div><!-- END MAIN-QUESTIONS-LIST --> <div class="row paginations home"> <div class="col-md-12"> <?php qa_template_paginations($search_query, $paged); ?> </div> </div><!-- END MAIN-PAGINATIONS --> </div> <?php get_sidebar('right'); get_footer();