Single Latest Posts Lite
Only showing 18 posts (7 posts)

  1. hollyhallacademy
    Posted 2 years ago #

    My website is only showing a maximum of 18 posts even though I have set it to 50.

    The webpage is:

    The shortcode I am using is:
    [slposts title="Latest News" category=news title_only=false time_frame=100 excerpt_length=100 number_posts=100 auto_excerpt=true thumbnail=true]

    Any ideas?



  2. Jose Luis SAYAGO
    Plugin Author

    Posted 2 years ago #

    Hello hollyhallacademy,

    I see you're setting time_frame which could be the cause, 100 days is something like 3.2 months, and the oldest post listed was published on June 3, which makes sense.

    I'm wondering, have you tried not setting time_frame so the plugin pulls all your articles?

    Could you please try with the shortcode below?

    [slposts title="Latest News"

    Looking forward to your feedback.

  3. romaiden
    Posted 2 years ago #

    I was not limiting the number of posts and it was showing only 10 articles (I just noticed).

    So now I added this "number_posts=1000" and it is showing all the 14 articles that I have.

    My question is: how may I have no limit, once if I do not mention number_post it limits in 10?

  4. romaiden
    Posted 2 years ago #

  5. Jose Luis SAYAGO
    Plugin Author

    Posted 2 years ago #

    Hello, number_posts is set to 10 by default. You could set it to -1 to pull all posts from database, something like:

    [slposts number_posts=-1 ...other parameters...]

    Thing is, when I created this plugin the main idea was feature the most recent posts. However, I soon realized people who have used Single Latest Posts or Network Latest Posts prefers to use it instead of hacking their themes or creating custom templates to pull posts the way they want, so number_posts in those cases became useless.

    I think setting number_posts=-1 should do the trick, I've tested this in my dev environment and it works but I'm looking forward to your feedback, helpfully you can confirm this.

  6. romaiden
    Posted 2 years ago #

    Yes, it seems work, at least my 14 articles are showed there, as you can see on http://www.immiflex.com/ImmiNews-wellmune/ (archive)

    Thank you very much again!

    Take care!

  7. hollyhallacademy
    Posted 2 years ago #

    Hi Jose,

    Removing the excerpt_length worked, thanks. I'm a bit worried now that over time these will build up into thousands of posts and the page load times will become unmanageable.

    Do you have any tips on how to manage this? Maybe categorizing them into months similar to how blogger does it?

    Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Single Latest Posts Lite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic