Jul 22, 20207:11 AM - edited Jul 22, 20207:16 AM
Contributor
Help with blog_recent_author_posts
SOLVE
Hi,
I have had this piece of code on our website for some time but only recently I have noticed that it has stopped working fully. I have pasted the full code below with a link to the page it's on (at the bottom "Other Articles by...").
Everything seems to work except for the following:
rec_post.url
rec_post.blog_post_author.display_name
I want to return the name of the author, as well as the URL for the blog. I have added |pprint at the end and they just return as null.
This code should pull in the most recent blog posts from the author of the current page. This works fine apart from the URL and the author name.
I've also tried:
rec_post.absolute_url
rec_post.blog_post_author.name
{% set rec_posts = blog_recent_author_posts('default', content.blog_post_author.slug, 4) %} {% for rec_post in rec_posts %}