Sauter la navigation

[Assigné] ALWAYS indicate end of search results

This support ticket is created Il y a 6 jours et 12 heures. 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)

Ce sujet contient 2 réponses, a 1 voix.

Dernière mise à jour par a.R Il y a 11 heures et 57 minutes.

Assisté par: Minesh.

Auteur
Publications
#2790599

a.R

Hi 🙂

With the code snippet below, the end of search results will only be indicated, if there has been a pagination.
How ALWAYS indicate it?

Thank you 🙂

		<wpv-loop>
          [wpv-post-body view_template="Beitragsvorschau"]
		</wpv-loop>
  
	<!-- wpv-loop-end -->

  

  [wpv-conditional if="([wpv-pager-current-page] eq [wpv-pager-total-pages])"]
  <div class="mobilschatten" style="font-size: 100%; color: #ddd; font-weight: bold; margin: 1.4em; text-align: center;">~ The End. ~</div>
  [/wpv-conditional]
#2790675

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I believe that the conditional display you are using currently to check for last page is the only way you can check for the end of last page.

#2791317

a.R

Hi Minesh 🙂

That´s a pity.
So maybe we check after search results update, if the number of displayed search items is smaller than search results per page and if so, display that message?
(But this won´t work, if there are exactly as many results as results per page...

Or is there a possibilty to check after search results update, if there were no more results found?

Or how does toolset find out, if to load more results (do pagination) or not?

THANK YOU 🙂

Achim