{"id":14633622,"date":"2021-07-08T15:58:15","date_gmt":"2021-07-08T15:58:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&p=14633622"},"modified":"2024-06-08T18:32:48","modified_gmt":"2024-06-08T18:32:48","slug":"query-loop-block","status":"publish","type":"helphub_article","link":"https:\/\/wordpress.org\/documentation\/article\/query-loop-block\/","title":{"rendered":"Query Loop block"},"content":{"rendered":"\n

Go back to the list of Blocks<\/strong><\/a><\/p>\n\n\n\n

The Query Loop block<\/em> is an advanced block that allows you to display posts based on specified parameters, like a PHP loop without the code. You can think of it as a more complex and powerful Latest Posts Block<\/em><\/a>. With various block patterns integrated into the block setup, you can do things like create a portfolio or a page full of your favorite recipes.<\/p>\n\n\n\n

\"Query<\/figure>\n\n\n\n

To add the Query Loop <\/em>block to a page, click the block inserter<\/strong> (+) icon to open the block inserter pop-up window and choose the Query Loop<\/em> block.<\/p>\n\n\n\n

\"Adding<\/figure>\n\n\n\n

You can also use the keyboard shortcut \/query-loop<\/kbd> to quickly insert a Query Loop<\/em> block. <\/p>\n\n\n\n

Detailed instructions on adding blocks<\/a><\/p>\n\n\n\n

Block configuration<\/h2>\n\n\n\n

After adding the Query Loop<\/em> block you will see two options:<\/p>\n\n\n\n