Skip Navigation

[Resolved] Split posts of nested view

This support ticket is created 6 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#595694

Hi there

I want to accomplish the following with 2 different views:

Post #1
Post #2
Post #3
AD #1
Post#4
Post#5
Post#6
AD#2
... and so on

As there is no relationship between a post and a ad, I cannot solve this with parent/child-logic.

Is it possible to nest the "ad"-view inside the "post"-view but force the "ad"-view to ever only show the next "ad" in the queue?

I already tried this with

wpv-item index="split..."

but it doesn't work as the "ad"-view always shows all the results or always the same filtered ones... but it should always show the ad "next in line"...

I hope you guys understand and appreciate your help with this matter.
Best
Philip

#595799

Dear Philip,

Thanks for the details, you are right, it is expected result that:
the "ad"-view always shows all the results or always the same filtered ones

But there is a workaround, you can edit the "ad" view, option "Ordering", choose "Random order", and option "Limit and Offset", choose display only 1 item. Then it will display a ad post with random order, it might be able to display different AD in different location,

#595906

Hi Luo

Thanks for your response. Unfortunately this won't work for me for the following reason:

One ad mustn't show twice - a random order wouldn't prevent that, right?

Is there another possibility?

Thanks
Philip

#596120

There isn't such a built-in feature within Views plugin, if you agree, we can take it as a feature request, currently, you can check our Toolset Contractors for it:
https://toolset.com/contractors/