- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Recent Blog Posts per Topic wont load in our page
12-04-2018 11:02
Hello we have created a Video Blog in our site and we want to make it appear on our Home Page as well but to videos that have a tag "Events Video" , I have followed this code . But it wont load
Is there something wrong with my code?
{{ blog_recent_topic_posts(6097481406, 'events-video', 3 ) }}
{% set topic_posts = blog_recent_topic_posts(6097481406, 'events-video', 3) %}
<ul>
{% for topic_post in topic_posts %}
<li>
<div class="related-image">
{% if topic_post.featured_image %}
<a class="post-list-thumb" href="{{ topic_post.absolute_url }}">
<img src="{{ topic_post.featured_image }}" alt="{{ topic_post.name }}">
</a>
{% endif %}
</div>
<div class="recent-right-col">
<a href="{{ topic_post.absolute_url }}">{{ topic_post.name }}</a>
<div class="custom-date">
{{ topic_post.publish_date_local_time.strftime('%d') }}
{{ topic_post.publish_date_local_time.strftime('%B') }},
{{ topic_post.publish_date_local_time.strftime('%Y') }}
</div>
</div>
</li>
{% endfor %}
</ul>
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content