The Listing Grid Shortcode Maker is a nice little tool in Gloo‘s arsenal that will allow you, for example, to create common use listings and have your less Elementor-savvy editors and users still be able to have them show on their articles, by simply pasting a shortcode into the Text Editor.
Set-up to use this feature is fairly straightforward once we get the hang of it. All we need to do is create a new listing through JetEngine if necessary, go into any Elementor page and create a Listing Grid Widget for it.
Once we’re satisfied with the Listing Grid, we’re gonna go ahead and save it as a Global Widget. Now it’s time to hop on the Gloo Settings Page in your dashboard and click on Settings next to this feature.
We’ll be greeted by a list of our existing Listing Grid Shortcodes. Here we can go ahead and create a new one. This will create a new post under a tailored Custom Post Type, where all we need to do is give it a title, select the Listing Grid Global Widget’s title from the Elementor Templates drop-down menu, and assign a custom shortcode to it.
This will generate, on top of the shortcode we’re here for, a macro as well. Macros look like %macro%, with the word between the percentage symbols being replaced by whichever title we give the listing shortcode through Gloo settings.
Now all that is left to do is editing the global widget we’ve created, and making sure the macro is inserted into the Include Posts By query option.
We can now go ahead and paste that shortcode within any page’s text editor, and it will print on the frontend exactly where placed. If we use it as is, it will display all of the items in the listing according to the Widget’s set number of posts.
But we can do one better: by typing out the IDs of the posts you want to show on the listing, the Widget on the frontend will display just the specified ones.