Hi,
Please check the attached image. I’ve created a custom module using the below code to show 2 recent posts from a blog inside a website page. But our new requirement is to show same data from some posts which we input manually. So is it possible to fetch Feature image, Title and Content from a specific blog post URL? It is ok if we need to repeat the custom module twice inside the template.
{% set rec_posts = blog_recent_posts(‘default’, 2) %}
<div class=“row-fluid-wrapper”>
<div class=“row-fluid”>
{% for rec_post in rec_posts %}
<div class=“span12”>
<a href=“{{rec_post.absolute_url}}” class=“blog-post”>
<div class=“span6”>
<div class=“blog-img-outer”>
<img src=“{{ rec_post.post_list_summary_featured_image }}” alt=“{{ rec_post.featured_image_alt_text }}”>
</div>
</div>
<div class=“span6”>
<h3>{{ rec_post.name }}</h3>
<h3>{{ rec_post.show_date }}</h3>
<p>
{{ rec_post.post_summary|striptags|truncate(150,false,‘…’) }}
</p>
<span class=“read-more”>Read More</span>
</div>
</a>
</div>
{% endfor %}
</div>
</div>
Thanks
Shiyon

