I have my page of Blog ann this a I have a side-bar with recent posts and I would like to in this module appear an image of each recent post show in this module.:
Hi Janette, I believe that the Recent Posts module only allows limited customization and I can't seem to see a way to display just the image, but you could use a custom module with HubL to specify exactly what you want to add. This link has more on blog_recent_posts.
Something like:
{{ blog_recent_posts('default', 5) }}{% set rec_posts = blog_recent_posts('default', 5) %}{% for rec_post in rec_posts %}<div class="post-featured-image">{{ rec_post.featured_image}}</div> {% endfor %}
Hi Janette, I believe that the Recent Posts module only allows limited customization and I can't seem to see a way to display just the image, but you could use a custom module with HubL to specify exactly what you want to add. This link has more on blog_recent_posts.
Something like:
{{ blog_recent_posts('default', 5) }}{% set rec_posts = blog_recent_posts('default', 5) %}{% for rec_post in rec_posts %}<div class="post-featured-image">{{ rec_post.featured_image}}</div> {% endfor %}