CPT Archive Sort Order

Hi,

I have a custom post type called “baptism”. In the CPT page, the entries are sorted by the post title, as expected. However, when I create an Archive Layout for the CPT, the ordering seems to be totally random.

The archive layout does not have a Looper Provider turned on, just a Looper Consumer in the appropriate place. How can I get the sorting correct, please?

Thanks,
Christopher

Hi Christopher,

Thanks for reaching out.
The Archive Layout uses the default WordPress query which is ordered by Publish Date with ascending order. And that can’t be changed at this moment. If you use the Post element you can change the order as per your need.

Hope it helps.
Thanks

Thank you. Using the Post Element has done what was needed.
Christopher

Hey Christopher,

That’s great and you’re welcome!

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