Auto Populate Grid with CPT Posts (advanced)

Useful for when you want to use a Custom Post Type for your Grid's source, but don't have any categories or tags assigned to your CPT posts.

Normally to create a post-based grid, you’d have to select at least one category or tag.  But if you don’t have any categories or tags assigned to these Custom Post Type posts, you can still populate an Essential Grid with the CPT posts using the following PHP code.

To use, just modify the “23” part to whatever page you want the grid to show up on, and then edit the “essential_grid” part in the code to whatever the slug is for your CPT.  Then add to one of your theme’s page template files, such as “page.php”.