Cannot reset a loop in a plugin template

Your question is incomplete and you have omitted all the context for some weird reason. I hope we agree that query_posts() is a bad idea. There’s enough been said on it: When to use WP_query(), query_posts() and pre_get_posts Having said that, have you tried wp_reset_postdata, wp_reset_query or rewind_posts? I have no idea what you are … Read more

show latest authors blog post

Please Try This To Get Post in DESC order $args = array( ‘orderby’ => ‘title’, ‘order’ => ‘DESC’, ‘author’ =>’authorName’, ); $query = new WP_Query( $args ); // The Loop if ( $query ->have_posts() ) { echo ‘<ul>’; while ( $query ->have_posts() ) { $query ->the_post(); echo ‘<li>’ . get_the_title() . ‘</li>’; } echo ‘</ul>’; … Read more

Pagination not working with WP_QUERY

You are most probably not doing this on a static front page, so your paged parameter is using wrong values. Static front pages uses get_query_var( ‘page’ ) to calculate pagination, all other pages uses get_query_var( ‘paged’ ) You need to also set the $max_pages parameter in next_posts_link. Without that, your links won`t display <p class=”older”><?php … Read more