Skip Navigation

[Resolved] Repeatable form group still shown after deleting parent post

This support ticket is created 5 years, 1 month 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
- 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 2 replies, has 2 voices.

Last updated by wesselK 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1397959
toolset.png

I am trying to:

Consider the following data structure:
- Studies (Custom post type)
- Start dates (RFG)

We are trying to show an overview of all start dates with their parent studies on a page. Problem is, that when we delete a study, their start dates remain in the system, and they show up incorrectly in the overview. How can we make sure that only start dates that have a parent study will be shown on the page?

Link to a page where the issue can be seen:

hidden link

#1398237

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please check now: hidden link

I've wrapped your view's loop with conditional statement that checks if parent exists then and then it should display the loop item:

<wpv-loop>
[wpv-conditional if="( '[wpv-post-id item='@startdata-opleiding.parent']' ne '' )"]
			<tr>
				[wpv-post-body view_template="loop-item-in-alle-startdata-incl-filters"]
			</tr>
          [/wpv-conditional]
		</wpv-loop>

More info:
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

#1398363

My issue is resolved now. Thank you!