How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Lastest news post limit


Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #17221

    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

    the limit is ignored on the review archive page:

    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?



    Hi Debbie,

    I tested it in one of our demos and I couldn’t see the problem :
    (The widget on the footer is the same with num=2)

    Which version of PokaTheme are you using? The latest was 3.4.9


    Hi, we managed to fix this issue, it was coming from another function we had created. Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.