Support » Plugin: Featured Post » get_next_posts_link doesn't work w/ this plugin

Viewing 1 replies (of 1 total)
  • Plugin Author WPPress

    (@ssovit)

    ya. thats a bit tricky… actually you should do something like

    $old_query=$wp_query;
    $wp_query=new WP_Query(array('featured'=>'yes',...your other conditions...));
    ... Your if else and while loop with $wp_query->have_posts();
    ....your get_next_posts_link() and your get_previous_posts_link();
    $wp_query=$old_query; // restore default query variable;

    make sure you use $wp_query as wp uses it most for other helper functions if you want to use them

Viewing 1 replies (of 1 total)
  • The topic ‘get_next_posts_link doesn't work w/ this plugin’ is closed to new replies.