Skip Navigation

[Resolved] Events leave gap in grid

This support ticket is created 3 years, 7 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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by charlotteM-2 3 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#2003989
Schermafbeelding 2021-03-29 om 09.39.jpg
Schermafbeelding 2021-03-29 om 09.09.13.png

Tell us what you are trying to do?
Show the events with conditional 'Startdate >=Now'
That's working oké but it leaves a gap in the grid where there was an event before the date. (Notice: I just started with this so there are no other old events).

Is there any documentation that you are following?
There is no documentation on this

Is there a similar example that we can see?
I don't know

What is the link to your site?
hidden link

I work with Divi and Toolset. All the most recent versions.

#2004043
query-filter-settings.png

Hi,

Thank you for contacting us and I'd be happy to assist.

Those gaps are expected since the view brings in 'all' the posts and shows them in the grid layout. Even though, the conditional block only shows the inner content for the posts where the 'Startdate' is greater than or equal to 'Now', this doesn't hide the grid container for the posts, which don't meet this condition. As a result, their empty grid containers are still visible.

A better option, in this case, would be to remove the conditional block from the loop and instead add a query filter for the same condition, through the view's content selection settings.
( as shown in the attached screenshot )

This way, the view will only bring in the posts which meet the criteria and you won't have to use the conditional check inside the loop.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2004065

Super! Resolved, thank you!