cabrerahector / wordpress-popular-posts

WordPress Popular Posts - A highly customizable WordPress widget that displays your most popular posts.
https://wordpress.org/plugins/wordpress-popular-posts/
GNU General Public License v2.0
280 stars 82 forks source link

{url} always links to current post #282

Closed denochenoveo closed 3 years ago

denochenoveo commented 3 years ago

Hi,

I use wpp to show the 2 most read posts in the smarthphone view using this: [wpp range=daily stats_views=0 order_by="views" limit="2" header_start="<h6 style='margin: 5px 0px 0px 0px;'>" header_end="</h6>" header="Lo más leído:" wpp_start="<ol>" wpp_end="</ol>" post_html='<li style="line-height: 15px; margin: 0 10px 5px 10px;"><a href="{url}?utm_source=Smartphone&utm_medium=LoMasLeido&utm_content=Clásicos">{text_title}.</a></li>']

Since some weeks ago, and without making any change to the code, the {url} param always links to the current post. If I change {url} with https://www.dream-alcala.com/?p={pid}, then the link links again to the right post.

You can check it on any post, as this one: https://www.dream-alcala.com/muestra-internacional-de-largometrajes-de-alcine-2020/ (open with the smarthphone view).

I also use wpp as a widget, and ir works fine there. The only issue is as a shortcode, and only since some few weeks ago. Maybe something was wrong in any update?

Thanks, Daniel

cabrerahector commented 3 years ago

Hola @denochenoveo,

Maybe something was wrong in any update?

Not that I know of. WordPress Popular Posts hasn't been updated in months (not on wordpress.org at least) so chances are something on your side is causing this problem.

cabrerahector commented 3 years ago

Closing this issue due to inactivity.