Offset for The Grid

Hi there, I’d like to show posts with TheGrid with an offset of 5, means the first 5 items should be ignored, as they are already shown in another, bigger grid.

How can I do this?

There has been a similar question here:

But the answer shows a part of the documentation, where I can’t find anything about offsets.

Can you help?

Best regards
Uli

Hi Uli,

Thanks for reaching out.

Regretfully, there is no settings for offset in the grid extension, you can either use meta key or exclude post using post id(s). Please find the link for more information: https://theme-one.com/docs/the-grid/#source_settings. You can also use https://theme-one.com/docs/the-grid/#query_filter and apply the offset as query arguments.

Alternatively, you can use the Essential Grid plugin, where you can add offset as an additional parameter.
You can find the information on the offset parameter from here: https://developer.wordpress.org/reference/classes/wp_query/#pagination-parameters

Hope it helps.

Thanks

Hi tristup, thank you for your help. Using meta key or exclude post I will have to adjust the settings every time a new post is created, right? Or is there any dynamic possible?

Can you forward a feature request for an offset to the TheGrid developper? I think this is something many users would need, i.E. to show the 5 newest posts on the startpage and all the rest on a separate news page.

For this page, changing to Essential Grid is no option, but thank you for the hint.

Best regards

Uli

Hi again, I just found this list of features here:

chrome_2020-08-14_11-33-37

Isn’t “starting offset in items” the feature I am looking for?

Best regards

Uli

Hi Uli,

That’s for slider starting offset, not the offset of the query which you are looking for. You can check the detailed docs here https://theme-one.com/docs/the-grid/

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.