<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>How to display the author with photo in blog posts &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/feed/</link>
		<description></description>
		<lastBuildDate>Fri, 17 Oct 2025 03:42:58 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-194673</guid>
					<title><![CDATA[How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-194673</link>
					<pubDate>Thu, 29 Jan 2015 21:52:00 +0000</pubDate>
					<dc:creator>CynthiaAllen</dc:creator>

					<description>
						<![CDATA[
						<p>We have multiple authors on our blog. Unfortunately, the author is not displaying at all even though we are showing the entire post.</p>
<p>I have poked around quite a bit and can&#8217;t find a place to activate display of the author and/or their picture.  </p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-194674</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-194674</link>
					<pubDate>Thu, 29 Jan 2015 21:52:25 +0000</pubDate>
					<dc:creator>CynthiaAllen</dc:creator>

					<description>
						<![CDATA[
						<p>Oh<br />
Icon is the stack.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195327</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195327</link>
					<pubDate>Fri, 30 Jan 2015 16:35:38 +0000</pubDate>
					<dc:creator>Darshana</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Thanks for writing in! We have the [author] shortocode that you can use to display author info. Please refer to the following link for detailed information (<a href="http://theme.co/x/demo/icon/1/shortcodes/author/" rel="nofollow">http://theme.co/x/demo/icon/1/shortcodes/author/</a>). </p>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195376</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195376</link>
					<pubDate>Fri, 30 Jan 2015 17:33:01 +0000</pubDate>
					<dc:creator>CynthiaAllen</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks. </p>
<p>But I don&#8217;t understand where to put the short code. There is no obvious place for that in the User Profile.</p>
<p>We don&#8217;t want to have to manually list it every time.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195621</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195621</link>
					<pubDate>Fri, 30 Jan 2015 22:52:09 +0000</pubDate>
					<dc:creator>CynthiaAllen</dc:creator>

					<description>
						<![CDATA[
						<p>I am currently manually putting the short code into each post.  Now that I started doing this, the blog roll I set up to list only individual authors on their pages isn&#8217;t working. Now all posts are listed even though the widget says to pull only one author.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195848</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-195848</link>
					<pubDate>Sat, 31 Jan 2015 11:15:27 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in!</p>
<p>If you wish to show the author profile automatically below each single post page, this will require a template change. Because this requires a template change, I&#8217;d advise that you setup a <a href="http://theme.co/x/member/kb/how-to-setup-child-themes/" title="Child Themes" target="_blank" rel="nofollow">child theme</a>. This allows you to make code changes that won&#8217;t be overwritten when an <strong>X</strong> update is released. After your child theme is setup, please review how we recommend making template changes in <a href="http://theme.co/x/member/kb/customization-best-practices/" rel="nofollow">Customization Best Practices</a>.</p>
<p>After that, simply add following code in your child theme&#8217;s <strong>functions.php</strong> file:</p>
<pre><code>// Author Field below the post content - Single page only.
// =============================================================================

add_filter( &#039;the_content&#039;, &#039;custom_author_code&#039;);

function custom_author_code($content) {
   if ( is_single() ) {
      return $content . do_shortcode(&#039;[author title=&quot;About the Author&quot;]&#039;);
   } else {
      return $content;
   }
}
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-757769</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-757769</link>
					<pubDate>Thu, 21 Jan 2016 22:52:56 +0000</pubDate>
					<dc:creator>josephjbaranowski</dc:creator>

					<description>
						<![CDATA[
						<p>Awesome, but how do I display the full name and not the username on not only the post but the blog post page</p>
<p><a href="http://nobleapplications.com/wp/blog/" rel="nofollow">http://nobleapplications.com/wp/blog/</a><br />
<a href="http://nobleapplications.com/wp/2016/01/15/mobile-app-use-across-industry-lines/" rel="nofollow">http://nobleapplications.com/wp/2016/01/15/mobile-app-use-across-industry-lines/</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-758349</guid>
					<title><![CDATA[Reply To: How to display the author with photo in blog posts]]></title>
					<link>https://theme.co/archive/forums/topic/how-to-display-the-author-with-photo-in-blog-posts/#post-758349</link>
					<pubDate>Fri, 22 Jan 2016 06:31:04 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>To display full name on your blog aang single posts, please add the code below in your child theme&#8217;s functions.php file</p>
<pre><code>
function x_shortcode_author_v2( $atts ) {
  extract( shortcode_atts( array(
    &#039;id&#039;        =&gt; &#039;&#039;,
    &#039;class&#039;     =&gt; &#039;&#039;,
    &#039;style&#039;     =&gt; &#039;&#039;,
    &#039;title&#039;     =&gt; &#039;&#039;,
    &#039;author_id&#039; =&gt; &#039;&#039;
  ), $atts, &#039;x_author&#039; ) );

  $id        = ( $id        != &#039;&#039; ) ? &#039;id=&quot;&#039; . esc_attr( $id ) . &#039;&quot;&#039; : &#039;&#039;;
  $class     = ( $class     != &#039;&#039; ) ? &#039;x-author-box cf &#039; . esc_attr( $class ) : &#039;x-author-box cf&#039;;
  $style     = ( $style     != &#039;&#039; ) ? &#039;style=&quot;&#039; . $style . &#039;&quot;&#039; : &#039;&#039;;
  $title     = ( $title     != &#039;&#039; ) ? $title : __( &#039;About the Author&#039;, csl18n() );
  $author_id = ( $author_id != &#039;&#039; ) ? $author_id : get_the_author_meta( &#039;ID&#039; );

  $description  = get_the_author_meta( &#039;description&#039;, $author_id );
  $display_name = get_the_author_meta( &#039;first_name&#039;, $author_id ).&quot; &quot;.get_the_author_meta( &#039;last_name&#039; , $author_id);
  $facebook     = get_the_author_meta( &#039;facebook&#039;, $author_id );
  $twitter      = get_the_author_meta( &#039;twitter&#039;, $author_id );
  $googleplus   = get_the_author_meta( &#039;googleplus&#039;, $author_id );

  $facebook_output   = ( $facebook )   ? &quot;&lt;a href=\&quot;{$facebook}\&quot; class=\&quot;x-author-social\&quot; title=\&quot;Visit the Facebook Profile for {$display_name}\&quot; target=\&quot;_blank\&quot;&gt;&lt;i class=\&quot;x-icon-facebook-square\&quot; data-x-icon=\&quot;&#xf082;\&quot;&gt;&lt;/i&gt; Facebook&lt;/a&gt;&quot; : &#039;&#039;;
  $twitter_output    = ( $twitter )    ? &quot;&lt;a href=\&quot;{$twitter}\&quot; class=\&quot;x-author-social\&quot; title=\&quot;Visit the Twitter Profile for {$display_name}\&quot; target=\&quot;_blank\&quot;&gt;&lt;i class=\&quot;x-icon-twitter-square\&quot; data-x-icon=\&quot;&#xf081;\&quot;&gt;&lt;/i&gt; Twitter&lt;/a&gt;&quot; : &#039;&#039;;
  $googleplus_output = ( $googleplus ) ? &quot;&lt;a href=\&quot;{$googleplus}\&quot; class=\&quot;x-author-social\&quot; title=\&quot;Visit the Google+ Profile for {$display_name}\&quot; target=\&quot;_blank\&quot;&gt;&lt;i class=\&quot;x-icon-google-plus-square\&quot; data-x-icon=\&quot;&#xf0d4;\&quot;&gt;&lt;/i&gt; Google+&lt;/a&gt;&quot; : &#039;&#039;;

  $output = &quot;&lt;div {$id} class=\&quot;{$class}\&quot; {$style}&gt;&quot;
            . &quot;&lt;h6 class=\&quot;h-about-the-author\&quot;&gt;{$title}&lt;/h6&gt;&quot;
            . get_avatar( $author_id, 180 )
            . &#039;&lt;div class=&quot;x-author-info&quot;&gt;&#039;
              . &quot;&lt;h4 class=\&quot;h-author mtn\&quot;&gt;{$display_name}&lt;/h4&gt;&quot;
                . $facebook_output
                . $twitter_output
                . $googleplus_output
              . &quot;&lt;p class=\&quot;p-author mbn\&quot;&gt;{$description}&lt;/p&gt;&quot;
            . &#039;&lt;/div&gt;&#039;
          . &#039;&lt;/div&gt;&#039;;

  return $output;
}

add_action(&#039;wp_head&#039;, &#039;change_x_author_to_v2&#039;);

function change_x_author_to_v2() {
    remove_shortcode( &#039;recent_posts&#039; );
    add_shortcode( &#039;recent_posts&#039;, &#039;x_shortcode_author_v2&#039; );
}

function x_integrity_entry_meta() {

    //
    // Author.
    //

    $author = sprintf( &#039;&lt;span&gt;&lt;i class=&quot;x-icon-pencil&quot; data-x-icon=&quot;&#xf040;&quot;&gt;&lt;/i&gt; %1$s %2$s&lt;/span&gt;&#039;,
       get_the_author_meta( &#039;first_name&#039; ),
        get_the_author_meta( &#039;last_name&#039; )
    );

    //
    // Date.
    //

    $date = sprintf( &#039;&lt;span&gt;&lt;time class=&quot;entry-date&quot; datetime=&quot;%1$s&quot;&gt;&lt;i class=&quot;x-icon-calendar&quot; data-x-icon=&quot;&#xf073;&quot;&gt;&lt;/i&gt; %2$s&lt;/time&gt;&lt;/span&gt;&#039;,
      esc_attr( get_the_date( &#039;c&#039; ) ),
      esc_html( get_the_date() )
    );

    //
    // Categories.
    //

    if ( get_post_type() == &#039;x-portfolio&#039; ) {
      if ( has_term( &#039;&#039;, &#039;portfolio-category&#039;, NULL ) ) {
        $categories        = get_the_terms( get_the_ID(), &#039;portfolio-category&#039; );
        $separator         = &#039;, &#039;;
        $categories_output = &#039;&#039;;
        foreach ( $categories as $category ) {
          $categories_output .= &#039;&lt;a href=&quot;&#039;
                              . get_term_link( $category-&gt;slug, &#039;portfolio-category&#039; )
                              . &#039;&quot; title=&quot;&#039;
                              . esc_attr( sprintf( __( &quot;View all posts in: &amp;ldquo;%s&amp;rdquo;&quot;, &#039;__x__&#039; ), $category-&gt;name ) )
                              . &#039;&quot;&gt;&lt;i class=&quot;x-icon-bookmark&quot; data-x-icon=&quot;&#xf02e;&quot;&gt;&lt;/i&gt; &#039;
                              . $category-&gt;name
                              . &#039;&lt;/a&gt;&#039;
                              . $separator;
        }

        $categories_list = sprintf( &#039;&lt;span&gt;%s&lt;/span&gt;&#039;,
          trim( $categories_output, $separator )
        );
      } else {
        $categories_list = &#039;&#039;;
      }
    } else {
      $categories        = get_the_category();
      $separator         = &#039;, &#039;;
      $categories_output = &#039;&#039;;
      foreach ( $categories as $category ) {
        $categories_output .= &#039;&lt;a href=&quot;&#039;
                            . get_category_link( $category-&gt;term_id )
                            . &#039;&quot; title=&quot;&#039;
                            . esc_attr( sprintf( __( &quot;View all posts in: &amp;ldquo;%s&amp;rdquo;&quot;, &#039;__x__&#039; ), $category-&gt;name ) )
                            . &#039;&quot;&gt;&lt;i class=&quot;x-icon-bookmark&quot; data-x-icon=&quot;&#xf02e;&quot;&gt;&lt;/i&gt; &#039;
                            . $category-&gt;name
                            . &#039;&lt;/a&gt;&#039;
                            . $separator;
      }

      $categories_list = sprintf( &#039;&lt;span&gt;%s&lt;/span&gt;&#039;,
        trim( $categories_output, $separator )
      );
    }

    //
    // Comments link.
    //

    if ( comments_open() ) {

      $title  = apply_filters( &#039;x_entry_meta_comments_title&#039;, get_the_title() );
      $link   = apply_filters( &#039;x_entry_meta_comments_link&#039;, get_comments_link() );
      $number = apply_filters( &#039;x_entry_meta_comments_number&#039;, get_comments_number() );

      if ( $number == 0 ) {
        $text = __( &#039;Leave a Comment&#039; , &#039;__x__&#039; );
      } else if ( $number == 1 ) {
        $text = $number . &#039; &#039; . __( &#039;Comment&#039; , &#039;__x__&#039; );
      } else {
        $text = $number . &#039; &#039; . __( &#039;Comments&#039; , &#039;__x__&#039; );
      }

      $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&gt;&lt;i class=&quot;x-icon-comments&quot; data-x-icon=&quot;&#xf086;&quot;&gt;&lt;/i&gt; %3$s&lt;/a&gt;&lt;/span&gt;&#039;,
        esc_url( $link ),
        esc_attr( sprintf( __( &#039;Leave a comment on: &amp;ldquo;%s&amp;rdquo;&#039;, &#039;__x__&#039; ), $title ) ),
        $text
      );

    } else {

      $comments = &#039;&#039;;

    }

    //
    // Output.
    //

    if ( x_does_not_need_entry_meta() ) {
      return;
    } else {
      printf( &#039;&lt;p class=&quot;p-meta&quot;&gt;%1$s%2$s%3$s%4$s&lt;/p&gt;&#039;,
        $author,
        $date,
        $categories_list,
        $comments
      );
    }

  }
</code></pre>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

