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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745293253a4620989.html
评论列表(0条)