You are able to set and display some alternative listing templates with different style settings in one Listing Grid widget. We are going to present an example based on showing an alternative listing item depending on its meta field value using JetEngine.
1 Step — Create the listings
We create two listings, Listing Country and Listing Country 1, with the same content in each of them.
The Listing Country 1 listing has a different style: the position of the items, the title color and there is a discount label on the image.
2 Step — Set the Listing Grid widget
Now we open the page, where we use the Listing Grid widget and proceed to adjust appropriate widget’s settings to display an alternative Listing Country 1 listing in the main listing.
- In the Listing field, choose the Listing Country listing and enable the Inject alternative listing items below.
- Click the +Add Item button and set the needed options. In the Listing template line select the Listing Country 1 listing and in the Inject on field Depends on item meta field value option. Then, in the Key (name/ID) field paste the meta field name, set the certain operator and specify the corresponding value.
So, the alternative listing style will be applied to a certain post, which has the meta field with the defined value.
3 Step — View the listing grid on the frontend
Save the changes and view the result on the frontend.
Great! Now you know how to set the Listing Grid widget for displaying alternative listings depending on their meta field values.