Skip Navigation

[Resolved] Pagination to only show single view on next page

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

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 20 replies, has 2 voices.

Last updated by Shane 6 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#606551

That didn't seem to change anything once I unchecked the history option.

Here's the two types of links I'm having trouble with:

Archive page example: hidden link

Pagination of all Posts example: hidden link

An ideal structure would be:
hidden link
OR
hidden link

But there's no way to achieve this?

Here's three examples of sites with structure I'm trying to emulate:
hidden link
hidden link
hidden link

Thanks,
Chuck

#606921

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Charles,

Could you try recreating the archive because it seems to not be loading the pagination settings.

Take a look at the link below as to what the pagination settings should look like.
https://toolset.com/documentation/user-guides/custom-pagination-for-wordpress-archives/?utm_source=viewsplugin&utm_campaign=views&utm_medium=edit-wordpress-archive-pagination-controls-dialog&utm_term=Check%20the%20documentation

Enabling the Ajax pagination should resolve this issue.

Thanks,
Shane

#606931

I tried AJAX.

1. The items reload, but the page remains scrolled to the bottom. Users have to manually scroll to the top.

2. I'm still getting the view count in URL: hidden link

I assume there's no way to remove/hide the view count using AJAX or manual transition w/ reload?

Thanks,
Chuck

#607221

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Charles,

Yes we can disable the link in the url using the advanced option for the pagination settings in the Archive.

I've also added this code here

jQuery( document ).on( 'js_event_wpv_pagination_completed', function( event, data ) {
	/**
	* data.view_unique_id (string) The View unique ID hash
	* data.effect (string) The View AJAX pagination effect
	* data.speed (integer) The View AJAX pagination speed in miliseconds
	* data.layout (object) The jQuery object for the View layout wrapper
	*/
    jQuery("html, body").animate({ scrollTop: 0 }, "slow");


	
});

To the js section of the view that will scroll the page to the top after the pagination is completed.

Please let me know if this works for you 🙂

Thanks,
Shane

#608715

Shane,

Thanks, that code scrolls the page up.

I'm still having a problem with the URL, even with the Java option: hidden link

Just double checking. Is there no way to clean this up?

Thanks,
Chuck

#608901

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Charles,

Ajax wasn't enabled on this view.

Take a look at settings that I set for the view.
hidden link

This should provide a guideline on how to have your clean url.

From the link you can see that it was set to "Pagination enabled with manual transition and AJAX" then I selected the advanced options and unchecked the "Update the URL of the page when paginating the View"

Please let me know if this helps.
Thanks,
Shane