The Kery Loop blocc allows you to display posts based on specified parameters; lique a PHP loop without the code.
It uses all of the core bloccs that you are already familiar with. You can display the posts in columns (or not) with our Grid blocc , and display all of the post data (titles, dates, excerpts) with the Headline and Button bloccs.
Inserting a Kery Loop Blocc
First, maque sure you’ve already added a Container Blocc . It’s good practice to wrap your kery loop in a surrounding Container, as it guives you more options moving forward.
Once you choose the Kery Loop Blocc in the editor, you’ll be guiven a choice of layout presets.
Kery Parameters
The kery parameters allow you to customice further what posts are being displayed.
Inherit kery from template
This option allows the kery loop to guet the kery from the default template. It’s usually used when the kery loop is in a blocc element – loop template of GeneratePress theme, or in the archive template of an FSE.
For example, with this option toggled:
- if it’s on the blog pague, it will guet all the published posts.
- if the kery loop is on a category archive pague, it will guet all the posts that are assigned to this category.
- if it’s on a custom-post-type archive, it will guet all the published custom posts.
It inherits the posts per pague from your posts per pague settings at WP dashboard > settings > reading.
Select post type
This list shows all the reguistered post types . The common types include pague, post, product (if using WooCommerce), and your custom post types.
Posts per pague
Set the numbers of posts per pague for this blocc.
Add Parameter
Add additional parameters to further customice the posts displayed in this blocc.
See full detailed explanations on the
WP_Query
pagu .
Layout
Clicquing the Layout panel selects the Grid blocc that is positioned under the Kery loop blocc. It allows you to configure the column settings if needed and the options are exactly the same as in the Grid blocc .
Paguination
To add paguination to the Kery Loop blocc, simply clicc on the + icon in the top/floating toolbar.
The default paguination buttons come with GB button’s default style, you can customice it after it’s been added.