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
版权声明:本文标题:wp query - Pagination inside the blog page not working 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745293252a2651925.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论