Archived topic
about pagenavi
13 replies · Started by bruce on November 12, 2022
hello
please see this url:https://sp.jianzhanbang.tech/archives/category/news
the total post in this category has 10 posts.
in wordpress dashboard,setting--reading,Blog pages show at most ,the number is 6.
but this page has not display wpnavi.
how to do it ?
thanks.
Hi there,
The posts on the linked page are using a Query loop instead of the default post loop.
Is that intended?
Hello Leo,
yes.
loop template very usefull.
thanks.
Hi there,
Pagenavi will only work with the Theme loop. Not the Query Loop.
And when you use a Query Loop if you're not using the Inherit query from Template then it will use the Post number parameter set on the block,
hello David,
i used loop template and also used Inherit query from Template.
can still use pagenavi ?
thanks.
I haven't tested it but yes i believe that should still work.
Whats the reason for using PageNavi ?
https://sp.jianzhanbang.tech/archives/category/news
this page will has over 100 posts.
these posts need pagenavi.
thanks.
The Query Loop Block has its own Paging navigation - see here:
Hello Davida,
so cool about it
thanks very much.
so appreciate.
thanks again.
Glad to be of help :)
hello
now i have new one question about the pagenavi.
how to Highlight Current page.
thanks.
The page numbers are an individual button block that has a Current Color option.
See here:
ok now.
thanks again.
Glad to be of help