Navigation überspringen

[Gelöst] Only show results if there are records

This support ticket is created vor 4 years, 7 months. 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 -

Zeitzone des Unterstützers: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von geertV-3 vor 4 years, 7 months.

Assistiert von: Waqar.

Author
Artikel
#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
versteckter 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 versteckter 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: versteckter 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!