Skip Navigation

[Résolu] Views in views to display parent posts

This support ticket is created Il y a 7 années et 5 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 réponse, has 2 voix.

Last updated by Shane Il y a 7 années et 5 mois.

Assisted by: Shane.

Auteur
Publications
#460242

I am trying to: setup a view inside a view. the top view displays child posts. then, the child view displays parent posts. is this possible?

I visited this URL: https://toolset.com/forums/topic/querying-and-displaying-parent-post-of-a-post-from-wp-types-relationship/

right now, i've got a setup where my top view displays parent posts, then the bottom view displays child posts. the problem with this is i'd like to order the output by date, but unfortunately sometimes a published parent posts will not have a published child posts. when that happens, the output leaves a blank space ((i.e. there's a published parent, but not published child)

what i'd like to do is setup 3 views.

so, the top view displays child posts,
then the middle view displays parent posts,
then the bottom view displays child posts (again)

the reason for this, is that top view will have a filter for status published.

so, is it possible to do a view inside a view that shows the parent post?

#460288

Shane
Supporter

Languages: Anglais (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jeffrey,

Thank you for contacting our support forum.

Unfortunately not this won't be possible because our filters are limited to display the Parent first then the child.

This is because the relationship data is stored on the child and not on the parent, so we wouldn't be able to use the filters to display the Parent posts under the child.

Thanks,
Shane

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