Skip Navigation

[Assigned] ALWAYS indicate end of search 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.

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 2 replies, has 1 voice.

Last updated by a.R 5 hours, 56 minutes ago.

Assisted by: Minesh.

Author
Posts
#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

Languages: English (English )

Timezone: 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