Post Pagination with Looper Provider problem

Hello,
I have a problem with my project page. (https://sweb.agency/projects/)
I can’t get the pagination to work.
If I remove the looper provider the pagination works but I can’t sort the posts with a custom field I created.
To sort the posts in order of project completion date (the custom field: data_pubblicazione) I enabled the Looper Provider by sorting the posts by descending data_pubblicazione order, but pagination doesn’t work that way.
Is there any way to make pagination work and contextually sort the projects by the custom field?
If you can’t I have plan B… I’m going to change to all the projects the post publication date since that is the data that is taken automatically. If I can I wanted to be able to handle this automation.

Hello @LukeStephans,

Thanks for writing to us.

Please note that on the archive page, the default WordPress loop is working so you don’t need an extra loop on the archive layout. In case you want to pull the post data using the looper provider on the archive page the pagination element will not work.

Hope it helps
Thanks

Hello @prakash_s ,
thank you very much for your reply.
So are you telling me that there is no possibility to sort the posts through a custom field and at the same time make the navigation work? That seems like a big limitation to me…
What do you suggest me to do?

1 Like

Hello Luca,

If you are going to sort the post items in your archive pages, you will have to modify the archive query variables. Please check out this documentation instead:

Be advised that custom CSS coding is beyond the scope of our support. The above is just an example code on how you may achieve what you have in mind. You can check out our ONE service for a detailed and tailored solution.

Best Regards.

Thank you very much!
In the end I changed internal method and manage the order with the date of the post and as internal info I manage my custom field.
Thank you very much for the documentation, very interesting.
As usual top support!
Have a nice day

You are most welcome, Luca.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.