Saltar navegación

[Resuelto] Multiple Post Type View

This support ticket is created hace 2 años, 6 meses. 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.

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por JoelK2744 hace 2 años, 6 meses.

Autor
Mensajes
#2527725

Hello,

I have a blocks view made up of multiple post types ('Post-Type-A', 'Post-Type-B', 'Post-Type-C') and the output displays 3 random results, is there any way of limiting the view to only show a random result from 'Post-Type-A' as the first item, a random result from 'Post-Type-B' as the second item, and a random result from 'Post-Type-C' as the third item. Or can this only be achieved by setting up 3 separate views?

Thanks

#2527881

Nigel
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+01:00)

Hi Joel

Logically I think that can only be achieved with 3 separate queries (so 3 separate Views).

If you can think of how you would formulate such a query using WP_Query (or get_posts) then let us know and we could help implement the same using a View and possibly some custom code to modify the query.

#2527911

Ok thanks Nigel, no I can't think of a way to formulate it so will stick with what we have.

Thanks