Skip Navigation

[Resolved] Only show results if there are records

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

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 geertV-3 3 years, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2186207

On my website I have organizations and vacancies
I have a page that shows the jobs of an organization and when they have more than 1 vacancies, there is a list of other vacancies see
hidden link

When they only have 1 vacancie or job, I want to show nothing and now there is the text

Other jobs from this organization:
No items found

see hidden link

So, here I want the text "Other jobs from this organization:" and "No items found" not to show

Can you please help?

Thank you very much

#2186637

Hi,

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

To achieve this, I added the following changes:

1. I moved the heading "Other jobs from this organization:" from the content template "Template for Vacature" and placed it inside the view's "wpv-items-found" shortcode, so that it is only shown, if there is at least 1 result.

2. Next, I also removed the "no items found" text from the view's "wpv-no-items-found" shortcode, so that no text is shown, when there is no result.

Screenshot: hidden link

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

regards,
Waqar

#2186717

My issue is resolved now. Thank you!