- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Adding Blog Articles to Thank You Page
SOLVESep 25, 2017 3:33 PM
On a thank you page I've created I'd like to add recently added blog articles to that page similar to what I see here..
I like the look of the Related Articles and that's what I want added but the current modules for Post Listing and Post Filter does not accomplish what I want. The articles should updatea as I add new articles. Is there a way to do this easily?
Thanks
Terry
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Sep 26, 2017 12:42 PM
I find the easiest way to pull this off is to use a recent post function
{% set rec_posts = blog_recent_posts('default', 5) %} {% for rec_post in rec_posts %} <div class="post-title">{{ rec_post.name }}</div> {% endfor %}
and build the layout of my choosing inside of the for loop. All of the blog variables you use in a blog can be used here, including if you create custom fields, but instead of "content." you would use what ever the single item name for the loop is, in this case "rec_post". see: {{ rec_post.name }}.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content