Building With

GenerateBlocks

Useful tips for building advanced blocks.

Exclude Latest Post

With Query Loop, you can exclude the latest post from showing up.

If you want to show the latest post as a Hero post on the Home Page followed by the rest of the posts underneath, Query Loop allows for this function.

1

Add a Query Loop block from GenerateBlocks and select the Layout option.

Add Query Loop
Query Loop Layout Options

2

On the right-hand side, click on Add Parameter.

Query Loop Add Parameter

3

On the drop-down menu select the Offset option.

Query Loop Select Query Parameter

4

Enter a value of 1 for Offset.

This will allow the Query Loop to offset the blog posts by 1 post, which means the latest post would not display.

Query Loop Offset

Final Results

The Query Loop block should now exclude the latest post. You can view it in the editor and in Preview.

Leave a comment