Skip Navigation

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

This support ticket is created hace 6 años, 10 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: ,

Este tema contiene 20 respuestas, tiene 2 mensajes.

Última actualización por Shane hace 6 años, 10 meses.

Asistido por: Shane.

Autor
Mensajes
#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: enlace oculto

Pagination of all Posts example: enlace oculto

An ideal structure would be:
enlace oculto
OR
enlace oculto

But there's no way to achieve this?

Here's three examples of sites with structure I'm trying to emulate:
enlace oculto
enlace oculto
enlace oculto

Thanks,
Chuck

#606921

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: 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: enlace oculto

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

Thanks,
Chuck

#607221

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: 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: enlace oculto

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

Thanks,
Chuck

#608901

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: 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.
enlace oculto

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