admin管理员组

文章数量:1418637

I have a widget which creates a grid with pagination. If I am using the pagination then it works fine when used on the page to display grid.

But when I am using that in inside a blog post. The pagination is stuck at page 1 .

This is my arg used and I have used it inside the custom query loop.

$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
            $paged = apply_filters('pgggo_paginate_args_paged_hook', $paged);
            $args  = array(
                'format'    => 'page/%#%',
                'current'   => intval($paged),
                'total'     => intval($pgggo_query->max_num_pages),
                'mid_size'  => 2,
                'prev_text' => '<i class="fa fa-arrow-left"></i>',
                'next_text' => '<i class="fa fa-arrow-right"></i>',
            ); 

I have a few references but I am not how to use them to solve this issue.
Pagination not working with custom loop

Please help

本文标签: wp queryPagination inside the blog page not working