Skip Navigation

[Resolved] Remove "No items found" from view

This support ticket is created 8 years, 4 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by gavinS 8 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#356244
Active Companies screenshot.png

I would prefer if Minesh helped me with this as he has been helping with this so far.

This is a continuation of this thread:

https://toolset.com/forums/topic/nested-view-showing-parents-based-on-a-field-in-the-child/

What is happening now is that any Companies that don't have active jobs are coming up as "No items found" in the view. I would like to add a conditional output to only show the fields that actually have active jobs. See attached screenshot of what is happening now.

Here is the existing code in the Loop Output:

<h3>Active companies</h3>
[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
		<wpv-loop>
          [wpv-view name="open-jobs-for-active-companies" wpvprchildof="[wpv-post-id]" cached="off"]
		</wpv-loop>

	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]
#356263

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

What you should do is, you can remove following code from view "open-jobs-for-active-companies".

[wpv-no-items-found]
        <strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
[/wpv-no-items-found]

Could you please delete above code from "open-jobs-for-active-companies" and try to resolve your issue.

#356280

Of course..

Thanks Minesh

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