Skip Navigation

[Assigned] No empty results

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 3 replies, has 2 voices.

Last updated by breo 1 day ago.

Assisted by: Minesh.

Author
Posts
#2764985

The view of a search form is a list of posts. When the search find no results, the view also shows a list of posts instead empty.
How can I only print posts when the search has matches?

#2765285

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is strange.

Can you please share problem URL where I can search and using what field I should perform the search and it's not displaying the empty result message when search found no result.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2765979

Minesh
Supporter

Languages: English (English )

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

Well - the "No Items Found" text is actually configured by default and it will display that text when no results are found by view.

You can actually do this by selecting the view loop from the block Navigation. See Screenshot:
- https://toolset.com/wp-content/uploads/2020/08/1734901-Screenshot_2020_08_11_at_10.33.10_AM.png

Then editing Loop Template in the block sidebar. See screenshot:
- https://toolset.com/wp-content/uploads/2020/08/1734901-Screenshot_2020_08_11_at_10.33.13_AM.png

I'm not sure why you are having issue as if view will not find any result it will display the said text automatically there is no configuration required.

#2768447

The view that was created for the search always shows a list of random posts from the start and when it doesn't find results it also shows a list of random posts. I have it set so that the results, when there are any, are shown in random order. I wanted that message to appear both at the start and if no results are found, but I can't. The message you indicate is configured in the View already.