Skip Navigation

[Resolved] Split: Split: Using Types to create Events – only show active events with RFG

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to remove check if field value is empty

Solution:
You can use [wpv-conditional] shortcode to display conditional output.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/split-split-using-types-to-create-events-only-show-active-events-with-rfg/#post-1078648

Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

This support ticket is created 6 years, 3 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.

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by keithW 6 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1078621

Minesh,

We've run into one small problem that I'm hoping you can help with.

Goto hidden link and click the button to View Past. Scroll to the bottom of the page. There are several instances where the content is empty but a row is displaying. Troubleshooting this a bit, it looks like these are events that were trashed but the RFGs are still being found and displayed in the list.

How can we make sure only active events are displayed here?

#1078623

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please share your test server access details and event page problem URL?

#1078648

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing access details.

I've fixed the issue which displays your pasts events.
hidden link

I've wrap the content template output which displays each raw with conditional shortcode as given under:

  [wpv-conditional if="( '[wpv-post-id item='@event_dates.parent']' ne '' )"]
		[wpv-post-body view_template="loop-item-in-display-past-events-on-events-page"]
      [/wpv-conditional]

I do not see any blank row now. Could you please confirm 🙂 and also feel free to close all your open tickets as well as this one. Thank you very much.

#1078718

Thanks for helping fix the issue!

#1113031

Minesh,

We've run into a new problem with this. If our client creates an event in draft status, it's still displaying the items. You provided me with the below code to put into the Loop Editor:

<wpv-loop>
[wpv-conditional if="( '[wpv-post-id item='@event_dates.parent']' ne '' )"]
[wpv-post-body view_template="loop-item-in-display-events-on-events-page"]
[/wpv-conditional]
</wpv-loop>

How can I modify this so it checks to make sure the parent event has a published status?