wp query - Pagination inside the blog page not working

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

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

相关推荐

  • wp query - Pagination inside the blog page not working

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

    10小时前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信