How to query post by post ids?

Using the Combo Blocks plugin, you can easily query posts by post ids for Post Grid or Post Grid – Filterable Gutenberg blocks. 

To begin, insert the “Post Grid” or “Post Grid – Filterable” block.

From the List View make sure you’ve selected Post Query nested block. This selection is important to access all the available block settings for “Post Query”.

6yX4J7b

Now under Query Post => Add Query Params select the Post In option. Please note the “Pos In” option allows you to pass multiple post ids. If you want to query by single post ID then please select the Post ID option instead of Post In.

vFyjA00

On Post In you can pass multiple post ID’s with the comma separated to query.

AdOEgqE

That’s how you can query posts by ids for “Post Grid” or “Post Grid – Filterable” Gutenberg block. If you still need help, please create a support ticket on our forum.