• Resolved productioncat

    (@productioncat)


    Please help!

    I have installed wp-paginate plugin which works very well with the category. Here is the my category link https://www.niagarafreefun.ca/category/attractions-all/

    But, wp-paginate plugin doesn’t work with posts-for-page plugin. It always stay on the first page when I click the pagination. Here is the problem link. https://www.niagarafreefun.ca/niagara-events-complete-list/

    Here is part of the code in posts-for-page plugin.

    global $wp_query;

    if ( function_exists( ‘wp_paginate’ ) ) {

    if($_opts[‘cur_page’] > 0)
    {
    wp_paginate();
    }
    }
    else {

    $page_links_total = $wp_query->max_num_pages;

    if($_opts[‘cur_page’] > 1)
    {
    // show prev
    $output .= “<span class=’pfpNav’>” . get_previous_posts_link($_opts[‘prevText’]) . “</span>”;
    }
    if($_opts[‘cur_page’] < $page_links_total)
    {
    // show next
    $output .= “<span class=’pfpNav’>” . get_next_posts_link($_opts[‘nextText’]) . “</span>”;
    }

    }
    wp_reset_query();
    return $output;

    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp-paginate plugin doesn't work with posts-for-page plugin’ is closed to new replies.