Skip Navigation

[Resolved] How do I clean up pagination URLs?

This support ticket is created 6 years, 7 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#901790

Tell us what you are trying to do?
* I'm trying to clean up the url for multiple pages of the cpt archives.

For example, page 3 for one of my custom post types shows like this:
hidden link

How do I make it look cleaner, like this maybe or something similar:
hidden link

OR

hidden link

those are just examples, doesn't have to be like that, but I'd like to remove "wpv_view_count=xxx" and "wpv_paged"

Is there any documentation that you are following?
* No, I can't find much info on this or maybe not sure what to look for

I am using permalinks, I tried /category/post-name and just /post-name but that doesn't seem to make a difference. Maybe I'm missing an option in settings or how I'm making my cpts?

Is there a similar example that we can see?

What is the link to your site?

#901824
AJAX-pagination.JPG

Hello,

There isn't such a built-in feature within Views plugin, but you can hide(remove) the URL parameters with AJAX pagination, and disable the option "Update the URL of the page when paginating the View", see screenshot AJAX-pagination.JPG

#902132

This doesn't seem right, even on your own blog, the URL's are "pretty" like they usually are with WordPress. There must be a way to remove the parameters from the URL.

Is there a workaround that you know that might require another tool?

Is your suggestion going to allow people to still click on a page number rather than just loading the next page?

Thanks.

#902270

Q1) Is there a workaround that you know that might require another tool?

There isn't other existed workaround, those URL parameters are required for Views pagination. In Toolset blog, for example:
https://toolset.com/blog/page/2/
It is using WordPress archive pagination, it is not pagination of a normal view, see our document:
https://toolset.com/documentation/user-guides/normal-vs-archive-views/

Q2) Is your suggestion going to allow people to still click on a page number rather than just loading the next page?

Views pagination supports both ways:
1) click on a page number
https://toolset.com/documentation/user-guides/views-pagination/
2) Infinite Scrolling
https://toolset.com/documentation/user-guides/infinite-scrolling-in-views/

For your reference.