Hi we have a very weird issue with the shortcodes posts limit on one of our sites on Poka V3.
We are using the following shortcode in the footer widgets
[latest_news_sidebar num=”3″ cat=”12″ ]
While the limit works well on all pages and posts, example
https://www.svenskakasinon.se/recension/
the limit is ignored on the review archive page:
https://www.svenskakasinon.se/recension/
When I do a var dump on the query, for some reasons there are multiple posts_per_page arguments (Only on the archive page). One of them matches the argument in the shortcode while the other one is set to 9999999.
object(WP_Query)#22782 (51)
{ [“query”]=> array(2) { [“cat”]=> string(2) “12” [“posts_per_page”]=> string(1) “3” } [“query_vars”]=> array(63) { [“cat”]=> int(12) [“posts_per_page”]=> int(9999999) [“error”]=> string(0) “” [“m”]=> string(0) “” [“p”]=> int(0) [“post_parent”]=> string(0) “” [“subpost”]=> string(0) “” [“subpost_id”]=> string(0) “”
Any idea how this can be resolved?
Thanks
Charlton