picandocodigo / List-Category-Posts

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.
http://wordpress.org/extend/plugins/list-category-posts/
GNU General Public License v2.0
241 stars 112 forks source link

Pagination issue #470

Closed Bmadd closed 2 years ago

Bmadd commented 3 years ago

Hi There,

I get a problem with the plugin on my site, as it inserts a # into the widget pagination links for some reason. This makes the widget pagination links not work.

Example url of a pagination link:

https://mydomain.com/current-page/?lcp_instance_listcategorypostswidget-2&lcp_pagelistcategorypostswidget-2=2#lcp_instance_listcategorypostswidget-2

I've fixed this by appending the below code to your get_pagination function:

$pag_output = str_replace("#","", $pag_output);

this then works as expected.

I'm not sure why its adding this #, but it would be great if you could add this to the official repository so Idont have to hack it anymore :)

klemens-st commented 3 years ago

Hi, no need to change anything in the code. Please read the documentation.

klemens-st commented 3 years ago

The issue is the widget doesn't support this feature. But maybe you can use the shortcode in a text widget instead of the old LCP widget?

We no longer develop the widget anyway and encourage everyone to use shortcodes or the GUI plugin.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.