Skip to content

Snippet: Query Multiple Post Types in the WPBakery Post/Masonry Grid

By default in the WPBakery Grid you can not select to query multiple post types, however, you can do this using a custom Query and your own parameters. See the example below and attached screenshot. As you will notice we are using encoded tags for brackets because of how the parsing works in the shortcode it won't work using simple [] characters. You can do the same for any other parameters that require arrays for the value.

post_type%5B%5D=staff
&post_type%5B%5D=portfolio
&posts_per_page=20
&order_by=date
&order=DESC
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top