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 %}
<div class=“blogpostlisting_image”>
<img src=“{{ post.module_160434676630624.post_listing_image.src }}”>
</div>
{% endfor %}
Any help would be appreciated. Thank you!