• Resolved Anonymous User 13970287

    (@anonymized-13970287)


    Hello,

    If for instance I use the following code:

    [wp-tiles id="609,603,605,600,611,607,27,616,618,620,613,98,79,55" grids="News"]

    It will only show the first 10 tiles unless I do append:

    posts_per_page=20

    Thank you!

    https://www.ads-software.com/plugins/wp-tiles/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    Hi @aybe!

    Thanks for testing the beta version.

    I agree that it’s slightly counter-intuitive that you have to supply the posts_per_page parameter on top of explicitly given ids. However, I think that the behaviour is correct and expected. When a parameter (posts_per_page in this case) is not explicitly given, it should be the default value. Instead of having the software ‘guess’ what the user would expect (pagination or not), it sticks to what it knows.. namely the default parameter for posts_per_page.

    For example, somebody else may have a list of 100 posts by id, and probably wants to have pagination. (This is not a very plausible scenario, but you get the drift..)

    So, it’s a step extra in your situation, but more straight-forward in general. Would you agree?

    Cheers,
    Mike

    Thread Starter Anonymous User 13970287

    (@anonymized-13970287)

    Yes that’s fine, it’s just that it took me some time to figure out the cause of it so I thought I’d post here ??

    Your plugin rocks, thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[BETA] Showing specific posts still requires 'posts_per_page'’ is closed to new replies.