WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. hollyhallacademy
    Member
    Posted 10 months ago #

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

    The webpage is:
    http://www.hollyhallacademy.co.uk/holly-hall-news-feed/

    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?

    Thanks.

    http://wordpress.org/plugins/single-latest-posts-lite/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 10 months 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"
         category=news
         title_only=false
         excerpt_length=100
         number_posts=100
         auto_excerpt=true
         thumbnail=true
    ]

    Looking forward to your feedback.

  3. romaiden
    Member
    Posted 9 months 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
    Member
    Posted 9 months ago #


  5. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 9 months 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
    Member
    Posted 9 months 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
    Member
    Posted 9 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic