Pull img src variable from blog post module into blog listing page
SOLVE
I am essentially trying to pull the image src variable from a custom image module in a blog post into the blog post listing page.
From Blog post Listing module:
<img src="{{ module.post_listing_image.src }}">
In the single blog post template: {% block body %} {# Image for Listing Page #} {% module "module_160434676630624" path="/client_theme/modules/Blog-Post-Listing-Image", label="Blog-Post-Listing-Image" %} {# END Image for Listing Page #} ....
In the blog listing template I have tried various things. Here is the gist of what I am attempting (to spare you all the attempted methods):
<div class="blogpostlisting__listing"> {% for post in contents %}
Pull img src variable from blog post module into blog listing page
SOLVE
@alyssamwilie Excellent! I saw that post some time after I posted this and was still tweaking my syntax to try and get it to work. It is working now. Thank you!