# Help with blog\_recent\_author\_posts

**URL:** <https://community.hubspot.com/t/help-with-blog-recent-author-posts/23237>\
**Category:** CMS Development\
**Tags:** content\
**Created:** [July 22, 2020, 11:11am UTC](https://community.hubspot.com/t/help-with-blog-recent-author-posts/23237 "2020-07-22T11:11:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pm8rsh88](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pm8rsh88/32/78471_2.png) [@pm8rsh88](https://community.hubspot.com/u/pm8rsh88)\
**Post date:** [July 22, 2020, 11:11am UTC](https://community.hubspot.com/t/help-with-blog-recent-author-posts/23237/1 "2020-07-22T11:11:15Z")

</div>

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 %}

\<div class=“item text-left shadow-on-hover”\>  
\<div\>  
\<a class=“no-underline” href=“{{ rec\_post.url }}”\>\<div class=“cover-bg lazy” style=“background-image: url({{ rec\_post.featured\_image }}); min-height:200px;”\>\</div\>\</a\>  
\<div class=“add-padding”\>  
\<p\>\<a class=“nothing” href=“{{ rec\_post.url }}”\>{{ rec\_post.title }}\</a\>\</p\>

\<p\>\<strong\>{{ rec\_post.blog\_post\_author.display\_name }} | {{ rec\_post.publishDate|datetimeformat(‘%d’)}} {{ rec\_post.publishDate|datetimeformat(‘%b’)}} {{ rec\_post.publishDate|datetimeformat(‘%Y’)}}\</strong\>\</p\>  
\<p\>{{ rec\_post.meta\_description}}\</p\>

\</div\>  
\</div\>  
\<div class=“add-padding”\>  
\<p style=“padding:0;”\>\<a href=“{{ rec\_post.url }}”\>Read blog post \>\</a\>\</p\>  
\</div\>  
\</div\>  
{% endfor %}

> **[Community Compass Is the New Home for Our Lived Experience Content](https://www.cfglaw.co.uk/blog/community-compass-is-the-new-home-for-our-lived-experience-content)**
>
> Explore our Community Compass app for expert advice, support, and real stories, all designed to help you navigate recovery and find inspiration every day. Download now!

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [July 24, 2020, 7:34am UTC](https://community.hubspot.com/t/help-with-blog-recent-author-posts/23237/2 "2020-07-24T07:34:05Z")

</div>

Hey @pm8rsh88

Thank you for the information provided. I’ll tag a few experts.

Hey @Kevin-C @SandyG1 @John what would you advise in this case?

Thanks & Happy Friday!

Sharon

---

<div class="post-metadata">

**Author:** ![kamlesh\_k](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kamlesh_k/32/45996_2.png) [@kamlesh\_k](https://community.hubspot.com/u/kamlesh_k)\
**Post date:** [July 24, 2020, 4:56pm UTC](https://community.hubspot.com/t/help-with-blog-recent-author-posts/23237/3 "2020-07-24T16:56:36Z")

</div>

It was a hubspot side Issue. now it is fixed

---

<div class="post-metadata">

**Author:** ![pm8rsh88](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pm8rsh88/32/78471_2.png) [@pm8rsh88](https://community.hubspot.com/u/pm8rsh88)\
**Post date:** [July 28, 2020, 10:53am UTC](https://community.hubspot.com/t/help-with-blog-recent-author-posts/23237/4 "2020-07-28T10:53:12Z")

</div>

Thank you
