<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to add an author name to blog posts in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768093#M33279</link>
    <description>&lt;P&gt;Hi, I am trying to edit my blog template to include the author name alongside their avatar/photo. My template already has this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="blog-post__author"&amp;gt;&lt;BR /&gt;{# &amp;lt;a href="{{ blog_author_url(group.id, content.blog_post_author.slug) }}"&amp;gt;&lt;BR /&gt;{{ content.blog_post_author.display_name }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but no name shows up. Where and what do I need to change to add the name?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 19:56:29 GMT</pubDate>
    <dc:creator>ldiethel</dc:creator>
    <dc:date>2023-03-13T19:56:29Z</dc:date>
    <item>
      <title>How to add an author name to blog posts</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768093#M33279</link>
      <description>&lt;P&gt;Hi, I am trying to edit my blog template to include the author name alongside their avatar/photo. My template already has this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;div class="blog-post__author"&amp;gt;&lt;BR /&gt;{# &amp;lt;a href="{{ blog_author_url(group.id, content.blog_post_author.slug) }}"&amp;gt;&lt;BR /&gt;{{ content.blog_post_author.display_name }}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but no name shows up. Where and what do I need to change to add the name?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 19:56:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768093#M33279</guid>
      <dc:creator>ldiethel</dc:creator>
      <dc:date>2023-03-13T19:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an author name to blog posts</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768293#M33286</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/489050"&gt;@ldiethel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you need to modify the code you have shared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;&amp;lt;div class="blog-post__author"&amp;gt;
  &amp;lt;a href="{{ blog_author_url(group.id, content.blog_post_author.slug) }}"&amp;gt;
    &amp;lt;img src="{{ content.blog_post_author.profile_photo.url }}" alt="{{ content.blog_post_author.display_name }}" class="blog-post__author-avatar"&amp;gt;
  &amp;lt;/a&amp;gt;
  &amp;lt;span class="blog-post__author-name"&amp;gt;{{ content.blog_post_author.display_name }}&amp;lt;/span&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the code above, we added a &lt;CODE&gt;span&lt;/CODE&gt; element with the class &lt;CODE&gt;blog-post__author-name&lt;/CODE&gt; to display the author's name. You can customize the &lt;CODE&gt;span&lt;/CODE&gt; element's style to match your blog's design.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Also, make sure that the &lt;CODE&gt;content.blog_post_author&lt;/CODE&gt; object contains a valid author name. If the author name is missing, it won't appear on the blog post.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&amp;nbsp;&lt;BR /&gt;Himanshu Rauthan&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 09:35:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768293#M33286</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2023-03-14T09:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an author name to blog posts</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768465#M33297</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks, Himanshu!!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I add the code you supplied, I get this:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-03-14 at 7.18.51 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/87276iC6B73DE36711F0EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-03-14 at 7.18.51 AM.png" alt="Screenshot 2023-03-14 at 7.18.51 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Am I doing something wrong or adding this snippet in the wrong spot?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 14:20:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768465#M33297</guid>
      <dc:creator>ldiethel</dc:creator>
      <dc:date>2023-03-14T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an author name to blog posts</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768946#M33318</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/489050"&gt;@ldiethel&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Make sure that you add the code in the correct place in your blog post template. The code snippet should be added within the existing div element with the class "blog-post__author".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Try adding the code snippet just after the closing tag for the anchor element (&amp;lt;/a&amp;gt;), as shown in the modified code I provided earlier.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Also, make sure that you properly closed all the HTML tags in your template before adding the new code. Any unclosed tag can cause unexpected formatting issues.&lt;/P&gt;
&lt;P&gt;If you're still having trouble, please share more details or the code of your blog post template, and I'll try to help you better.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 10:42:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/768946#M33318</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2023-03-15T10:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add an author name to blog posts</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/769122#M33333</link>
      <description>&lt;P&gt;Thanks for your reply, I feel like I'm getting close! here is where I'm adding it, but still having the same issue as above.&amp;nbsp; I appreciate your help!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-03-15 at 7.54.07 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/87365i8962933E204F861F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-03-15 at 7.54.07 AM.png" alt="Screenshot 2023-03-15 at 7.54.07 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 14:55:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-add-an-author-name-to-blog-posts/m-p/769122#M33333</guid>
      <dc:creator>ldiethel</dc:creator>
      <dc:date>2023-03-15T14:55:49Z</dc:date>
    </item>
  </channel>
</rss>

