Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Pagination

$
0
0

Hi there,

I'm using a view to display search results, but not the filter controls. The URL parameters are set using a custom php file as I required a bit more flexibility.

I wish to include pagination on this view. The following has been enabled:

– Show 39 items per page. Show page selector drop down and previous and next page controls.

I'm not using AJAX. The following code is in the filter box.

[wpv-filter-start hide="false"]
[wpv-pagination]
<p>[wpml-string context="wpv-views"]Showing page [wpv-pager-current-page style="drop_down"] of [wpv-pager-num-page][/wpml-string] [wpv-pager-prev-page][wpml-string context="wpv-views"]Previous[/wpml-string][/wpv-pager-prev-page] [wpv-pager-next-page][wpml-string context="wpv-views"]Next[/wpml-string][/wpv-pager-next-page]</p>
[/wpv-pagination]
[wpv-filter-end]

The search results are working fine, for example the number of search results is varying based on the query, and the page numbers also vary. The first page of the search results load fine.

The issue is that if I attempt to change to another page from the drop-down (2, 3, 4, 5, 6 etc), the page simply reloads with the page 1 data.

Any assistance would be much appreciated. I'm happy to provide a link if necessary but unable to post it publicly.


Viewing all articles
Browse latest Browse all 20145

Trending Articles