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