Viewing 7 replies - 1 through 7 (of 7 total)
  • I’ve noticed that issue as well. The offset parameter works fine, but not the limit. No matter what you put in there, the query is always built with a limit of 10 posts.

    Have you managed to sort this out?

    I think I found it myself: In the file class.widget.php line 46, replace

    'showposts' => 0

    with

    'showposts' => $instance['posts_num']

    Also, not needed to fix this (I think), but as per WP_Query reference in here:
    http://codex.wordpress.org/Class_Reference/WP_Query

    showposts is deprecated and should be replaced by posts_per_page.
    There is another ocurrence of showposts a few lines up.

    I hope you find this helpful!!!

    Thread Starter TuomasL

    (@tule)

    Thanks for the input cattz, however as quite likely I switched to another alternative. 🙂 Then again, 5 months forward, i.e. now, I’d just do this by a simple query directly in my theme header. As at least for me this kind of function is something that is designed into the layout, and it most likely would never change. 🙂

    Thank you, cattz! This was helpful!

    Has this been fixed yet? I’m still having this issue, no matter what I put in there, it’s showing as many posts as are in the test site (we have less than 10 now, so I don’t know how many will eventually show up).

    I don’t want to bother editing the plugin files (obviously would be lost with the next update) so is this going to be fixed? Or should I go find another plugin maybe?

    thanks!

    never mind, I found another one that works: Category Posts widget.

    thans you so much Cattz for this tip it works hard for me 😉

    Regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Latest News Widget] Number of posts doesn't work’ is closed to new replies.