• The Post Grid Modules is an amazing one and helping to organize the posts very well.
    But when we need to place the post grid module on same page, multiple times, then same posts are displaying everywhere. If you can provide an option to “OFFSET” the posts in post grid module, then it will be a great help.

    eg:
    1st Post Grid module, I put Number of posts=5 (so it will load latest 5 posts)
    2nd Post Grid module, I put Number of posts=5, and I should be able to use “offset=5”, that means, skip first 5 posts and show 6-10 posts.
    3rd Post Grid module, I put Number of posts=10, and I should be able to use “offset=10”, that means, skip first 10 posts and show 10-20 posts.

    Make sense ?

    Thank you in advance.
    (I am trying in parallel with your codes in GitHub, didn’t get good result yet)

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

    (@nikeo)

    Hello,
    Thanks for opening this topic.
    I understand your point.
    For the moment, posts can be filtered by checking the “sticky post” checkbox and by using the category filter

    In my mind if the post query is the same, it is always a better decision ( from a performance and design standpoint ) to run one post query with a post number set to 10, instead of 2 queries with 5 posts each.
    But I might miss your specific use case. What would be your typical use case of the offset feature for example ?
    Thanks!

    Thread Starter ginigangadharan

    (@ginigangadharan)

    HI @nikeo,
    Thank you so much for replying on this.

    My use case is very general; I think I can explain better by a visual chart (please see the image attached.)

    Each color represents different post-grids (with N number of posts).
    You can also see the post number (eg: Post ID) which I am trying to implement. (posts in order without duplicates)

    I am not sure I missed any option in current Post-grid but I couldn’t implement such requirement. (This is just a sample)
    I feel like adding an offset option in post-grid will resolve the issue. (Query from 6-10 or 10-20 based on offset value and posts per page value.)

    Let me know if you need more information on this.

    note: I agree on the multiple queries, but I dont think we have option to do this different layouts without having multiple post grids.

    Thank you again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature – Add option for OFFSET in Post Grid Module’ is closed to new replies.