• Resolved varsachendra

    (@varsachendra)


    function setupPaginationSplitted(&$arr, $copyTopLevel, $arrayChildren) {
    if ($this->posts_per_page == 0) {
    $this->paginationMaxPage = -1;
    return;
    }

    $_childrenSizeBuff = 0;
    $itemsCount = $this->getCountArrayRecursive($arrayChildren, $_childrenSizeBuff);
    $this->paginationMaxPage = ceil($itemsCount / $this->posts_per_page);

    $currentPage = max($this->paged – 1, 0);
    //$currentPage = 0;//
    $itemsPerPage = $this->posts_per_page;
    $maxPage = max(($this->paginationMaxPage – 1), 0);

    $arrayPages = array();
    $allowedIDs = $this->prepareArrayPages($arrayPages, $copyTopLevel, $arrayChildren, $currentPage, $itemsPerPage, $maxPage);

    $new_arr = array();
    $arr_copy = $arr;
    $this->dropNotIncluded($arr, $allowedIDs, $new_arr);
    $arr = $new_arr;

    if ($currentPage > 0) {
    $prev_arrayPages = array();
    $prev_allowedIDs = $this->prepareArrayPages($prev_arrayPages, $copyTopLevel, $arrayChildren, ($currentPage – 1), $itemsPerPage, $maxPage);
    $prev_new_arr = array();
    $this->dropNotIncluded($arr_copy, $prev_allowedIDs, $prev_new_arr);
    $this->previousPage = $prev_new_arr;
    //print_r($this->previousPage);
    }
    }

    If $currentPage = 0 is wrong line

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author click5

    (@click5)

    Hello @varsachendra,

    Thank you for reporting this issue!

    We will include a fix in the next version of our plugin – v1.0.35, which we’re currently working on.

    I will keep you posted.

    Thanks,
    click5 Team

    Plugin Author click5

    (@click5)

    Hello @varsachendra

    We’ve just released a new version of our plugin – v1.0.35, which includes many bug fixes and improvements comparing to the previous version, including the one which you were facing.

    Please give it a try and let us know if you would spot any other issues.

    Thanks,
    click5 Team

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin have issue with paging’ is closed to new replies.