Skip Navigation

[Resolved] Pagination above and below view

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

This topic contains 2 replies, has 2 voices.

Last updated by martinG-11 3 years, 8 months ago.

Author
Posts
#2177413

Hi,
I have a view that outputs data in a table. I created it the classic/legacy way. I have pagination above the table and also below. This is how I achieved this:

In output editor:
[wpv-filter-meta-html]
[wpv-layout-meta-html]
[wpv-filter-start][wpv-pagination]
[wpv-pager-nav-links output="bootstrap" first_last_links="true" previous_next_links="true" step="10" reach="1" text_for_previous_link="vorherige" text_for_next_link="weiter"][/wpv-pagination][wpv-filter-end]

It basically works, but after jumping to the next page (refresh via Ajax) also the filter fields appear below the table. I just want to have the pagination below the table.

Have a look at it: hidden link
Password: bAUstelle

Can you help me solve this issue?
Thanks!

#2177551

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

I suggest you remove the pagination shortcodes from the output editor.

Instead, have the top pagination shortcodes in the Search and Pagination box, and add the lower pagination shortcodes in the Loop Editor, within the wpv-items-found block but after the loop itself.

Here's a simple example:

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
		<wpv-loop>
          <h3>[wpv-post-link]</h3>
		</wpv-loop>
	<!-- wpv-loop-end -->
	[wpv-pager-nav-links output="bootstrap"]
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]
#2177569

My issue is resolved now. Thank you!
Great support 🙂