CMS Development

vikasbendha
Member

Filter Blogs by author

SOLVE

I want to filture my blogs by author. 
Right Now I can filter them by category or tags they have but when I click on the button "More by this author " then that is redirecting me to blog home page again and I dont see filtered blogs there. 

My website is evercoach.com/blog

0 Upvotes
1 Accepted solution
relabidin
Solution
HubSpot Alumni
HubSpot Alumni

Filter Blogs by author

SOLVE

Hi @vikasbendha,

 

Your blog listing template does not include any If blog_author statements, which are supposed to evaluate to True if you are looking at a blog author page. When you click on the More by this author link, the URL correctly shows the format of a blog author page (e.g. http://www.evercoach.com/blog/author/clair). However, the content of the page doesn't get filtered to show the author's posts because the HubL statement that filters by blog author is missing from your listing template.

 

Here is a link to our blog markup documentation for blog authors: http://designers.hubspot.com/docs/hubl/blog-content-markup#if-blog-author-statement

 

Rami 

View solution in original post

1 Reply 1
relabidin
Solution
HubSpot Alumni
HubSpot Alumni

Filter Blogs by author

SOLVE

Hi @vikasbendha,

 

Your blog listing template does not include any If blog_author statements, which are supposed to evaluate to True if you are looking at a blog author page. When you click on the More by this author link, the URL correctly shows the format of a blog author page (e.g. http://www.evercoach.com/blog/author/clair). However, the content of the page doesn't get filtered to show the author's posts because the HubL statement that filters by blog author is missing from your listing template.

 

Here is a link to our blog markup documentation for blog authors: http://designers.hubspot.com/docs/hubl/blog-content-markup#if-blog-author-statement

 

Rami