Skip Navigation

[Resolved] Mixing CPTs by post date

This support ticket is created 7 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 1 reply, has 2 voices.

Last updated by Beda 7 years, 2 months ago.

Assisted by: Beda.

Author
Posts
#494096

I am trying to: take two or more types and create a slider which shows their posts in publshed date order.

So, if I have :

CPT Type 1
Post 1 - Published 1 Jan
Post 2 - Published 5 Jan
Post 3 - Published 10 Jan

CPT Type 2
Post 1 - Published 30 Dec
Post 2 - Published 4 Jan
Post 3 - Published 11 Jan

and I want a slider mixing CPT1 and CPT2 with 4 slides, what is shown would be:

CPT Type 2 Post 3
CPT Type 1 Post 3
CPT Type 1 Post 2
CPT Type 2 Post 2

When I try mixing two post types for a number of slides, what seems to happen is that the newest for each CPT appear with the number of each being the number of slides divided by two (in the cae of two CPTs) regardless of the published dates of each post.

#494345

This is not possible.

What you can do is querying 2 Post Types in a View, and order them by publication Date, either ascending or descending.

This will, disregard the Post Type, order all Posts by date.
If you need a secondary ordering, this is available on the same View settings, but it will not allow to group by post type.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.