Hi,
I might have found a bug in your plugin.
My customer has permalinks set to: “/%postname%”
So the urls are:
- example.com/about-us
- example.com/services
- example.com/contact
- …
He is using the shortcode [wpdm_category] with the “item_per_page” atrribute.
The problem is that urls in the pagination are like this:
- example.com/example-page/?cp=2
- example.com/example-page/?cp=3
- example.com/example-page/?cp=4
- …
Because of the permalink structure without a “/” at the end all urls get redirected.
- example.com/example-page/?cp=2 redirects to example.com/example-page?cp=2
- example.com/example-page/?cp=3 redirects to example.com/example-page?cp=3
- example.com/example-page/?cp=4 redirects to example.com/example-page?cp=4
- …
I fixed it by making a change in this file:
/wp-content/plugins/download-manager/src/wpdm-functions.php
(function: wpdm_paginate_links)
$phtml = str_replace( "/?cp=", "?cp=", $phtml );
Obviously just a quick fix. 🙂
I guess your plugin expects that every WordPress website uses / at the end – but this is not the case.
Is there a setting to remove the trailing shlash in the pagination?
Thanks,
Jan