Auto-populate Grid for Blog Pages Outside “The Loop” (advanced)

If you want to use Essential Grid for the Blog, Category, Archive, Tags, Author, Search pages of your theme, the following code snippet can be added to your corresponding theme files.
This example is for adding the custom code outside The Loop. For an "inside The Loop" example, Click Here

Example of the snippet added to the TwentyFifteen theme's "archives.php" file:

But this code can also be added to another one of your theme’s php files, such as “category.php”, “index.php”, etc.