• Resolved jwray1420

    (@jwray1420)


    I’m not sure if I’ve missed it but there does not seem to be an option to offset posts.

    You really need it if building frontpages, especially on news type sites. So you might have 3 top stories from a category up top then more from the same below. But you need those to be offset by 3 so you do not end up with the same posts twice on the page.

    Can this be added or is it already possible?

    Wordpress supports it via $query->set( ‘offset’, ‘1’ .

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor codersantosh

    (@codersantosh)

    Hello @jwray1420 ,

    Offset has a drawback, It doesn’t work with the pagination.

    offset (int) – number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The ‘offset’ parameter is ignored when ‘posts_per_page’=>-1 (show all posts) is used.

    We may add this option with some notice.

    Best regards!

    Thread Starter jwray1420

    (@jwray1420)

    Hi,

    For sure, but on a homepage unlikely to use pagination. Very handy to have if you can add it at some point.

    Thanks

    Plugin Contributor codersantosh

    (@codersantosh)

    Hello @jwray1420,

    I cannot agree on a point that homepage unlikely to use pagination, we are also using pagination on the magazine demo 1. Load More, Navigation and Pagination all use paged arguments on the query.
    I agree that Offset will be useful in some cases like you are trying to obtain. We will add it to the next version with some notice.
    Thanks for the suggestion.

    Best Regards!

    Plugin Contributor codersantosh

    (@codersantosh)

    Hello @jwray1420

    We have added Offset features according to your suggestions.

    • Added: Offset on Query
    • Also Added Author on Query

    Thank you for suggesting the features.
    Here are a list of Gutentor Changelog. Please update the Gutentor plugin to latest version.

    Best Regards!

    Thread Starter jwray1420

    (@jwray1420)

    HI, oh that’s great – thanks! Though I don’t think it is working just now, we have it up on a test site and the offset is not doing anything.

    Plugin Contributor codersantosh

    (@codersantosh)

    @jwray1420 I got you, will fix it on next version! The next version will release someday next week.

    Thread Starter jwray1420

    (@jwray1420)

    Great, working fine now. Appreciate it.

    Plugin Contributor codersantosh

    (@codersantosh)

    Most welcome and thanks again for the suggestions 🙂

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

The topic ‘Offset Posts’ is closed to new replies.