WordPress.org

Ready to get started?Download WordPress

Forums

Single Latest Posts Lite
[resolved] Pagination doesn't display (6 posts)

  1. red.rover
    Member
    Posted 1 year ago #

    Great plugin firstly, thank you.

    I have it working on this page http://www.essentialingredient.com.au/blog/

    It's a page meant to be viewed only on mobile devices, but you can see the problem on a desktop too - the pagination doesn't display. When I inspected the html I find:

    <div class="slposts-ulist-pagination slp-pagination" ></div>

    Any idea why this is happening?

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

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, thanks for your comment. Could you please tell me the parameters you're using in the shortcode?

    For pagination to work two parameters must be specified:

    1. paginate=true
    2. posts_per_page=x

    Where x is the number of posts you want to be displayed.

    Something like:

    [slposts thumbnail=true
             paginate=true
             posts_per_page=3
    ]

    Best regards.

  3. red.rover
    Member
    Posted 1 year ago #

    Hi, this is a paste of the code I'm using:

    [slposts thumbnail=true thumbnail_class=thumb wrapper_list_css=tei-blog thumbnail_wh=80x80 paginate=true posts_per_page=10]

    So that should work..

  4. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hello, well there is a parameter I didn't take into account the first time: number_posts which is 10 by default. If you leave it alone, even if you paginate posts, it will always limit the number of posts to 10.

    Please try to set a high number there so it doesn't interfere with your pagination, something like:

    [slposts thumbnail=true
           thumbnail_class=thumb
           wrapper_list_css=tei-blog
           thumbnail_wh=80x80
           paginate=true
           posts_per_page=10
           number_posts=1000
    ]

    Best regards.

  5. red.rover
    Member
    Posted 1 year ago #

    That explains it! Thanks.

    Perhaps that should be added in by default.

  6. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    I will keep it in mind for future releases, glad it worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic