<?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>Adding Author&#039;s Name to Post as a Link to Author Page? &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 11 Oct 2025 20:08:48 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-71539</guid>
					<title><![CDATA[Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-71539</link>
					<pubDate>Mon, 21 Jul 2014 16:14:34 +0000</pubDate>
					<dc:creator>John L</dc:creator>

					<description>
						<![CDATA[
						<p>Hello!</p>
<p>I&#8217;ve found the answer to half of my issue (how to add author&#8217;s name to post) from this thread: <a href="http://theme.co/x/member/forums/topic/author-display/" rel="nofollow">http://theme.co/x/member/forums/topic/author-display/</a></p>
<p>However, is there a way to make it so that the author&#8217;s name is clickable (as a link) to that particular author&#8217;s page?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-71859</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-71859</link>
					<pubDate>Tue, 22 Jul 2014 08:19:05 +0000</pubDate>
					<dc:creator>Paula S</dc:creator>

					<description>
						<![CDATA[
						<p>Hi John, </p>
<p>Thanks for writing in. I am curious as which function you&#8217;re after as you can simply add the script as shown here: </p>
<p><code>&lt;?php $author = get_the_author(); ?&gt;</code></p>
<p>and have the post show the author&#8217;s public name. Or if you&#8217;re after the author&#8217;s name with a link to a page, you can add this code instead (Take note that the website link should be filled up through the author&#8217;s profile when then sign in)</p>
<p><code>&lt;p&gt;Written by: &lt;?php the_author_link(); ?&gt;&lt;/p&gt;</code></p>
<p>Hope this helps!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-72036</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-72036</link>
					<pubDate>Tue, 22 Jul 2014 17:03:50 +0000</pubDate>
					<dc:creator>John L</dc:creator>

					<description>
						<![CDATA[
						<p>Awesome, thanks!</p>
<p>It was the 2nd script that I was looking for.</p>
<p>Can you tell me where I need to add the script to?  I am using a Child (Ethos) theme as well.  </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-72483</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-72483</link>
					<pubDate>Wed, 23 Jul 2014 16:32:23 +0000</pubDate>
					<dc:creator>Iris C</dc:creator>

					<description>
						<![CDATA[
						<p>Hi John,</p>
<p>Thanks for writing in!</p>
<p>In the <em>Edit Post</em> page, you will find <em>Screen Options</em> at the top. Select the checkbox with the label <em>Author</em>. By selecting this, your post will display the author, category, and date of the post.</p>
<p>To put a link on the author&#8217;s name, paste the following in the child theme&#8217;s <em>functions.php</em> file:</p>
<pre><code>if ( ! function_exists( &#039;x_ethos_entry_meta&#039; ) ) :
  function x_ethos_entry_meta() {

    $author = &#039; by &lt;a href=&quot;&#039;.  get_bloginfo(&#039;url&#039;).&#039;/author/&#039;.get_the_author_link().&#039;&quot;&gt;&#039;.get_the_author().&#039;&lt;/a&gt;&lt;/span&gt;&#039;;

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

    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; &#039;
                              . $category-&gt;name
                              . &#039;&lt;/a&gt;&#039;
                              . $separator;
        }

        $categories_list = sprintf( &#039;&lt;span&gt;In %s&#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; &#039;
                            . $category-&gt;name
                            . &#039;&lt;/a&gt;&#039;
                            . $separator;
      }

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

    if ( comments_open() ) {
      $title  = get_the_title();
      $link   = get_comments_link();
      $number = get_comments_number();
      if ( $number == 0 ) {
        $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&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 ) ),
          __( &#039;Leave a Comment&#039; , &#039;__x__&#039; )
        );
      } else if ( $number == 1 ) {
        $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&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 ) ),
          $number . &#039; &#039; . __( &#039;Comment&#039; , &#039;__x__&#039; )
        );
      } else {
        $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&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 ) ),
          $number . &#039; &#039; . __( &#039;Comments&#039; , &#039;__x__&#039; )
        );
      }
    } else {
      $comments = &#039;&#039;;
    }

    $post_type           = get_post_type();
    $post_type_post      = $post_type == &#039;post&#039;;
    $post_type_portfolio = $post_type == &#039;x-portfolio&#039;;
    $no_post_meta        = x_get_option( &#039;x_blog_enable_post_meta&#039; ) == 0;
    $no_portfolio_meta   = x_get_option( &#039;x_portfolio_enable_post_meta&#039; ) == 0;

    if ( $post_type_post &amp;&amp; $no_post_meta || $post_type_portfolio &amp;&amp; $no_portfolio_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;,
        $categories_list,
        $author,
        $date,
        $comments
      );
    }

  }
endif;</code></pre>
<p>Hope this helps!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87048</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87048</link>
					<pubDate>Mon, 18 Aug 2014 19:23:09 +0000</pubDate>
					<dc:creator>STEVE H</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, I&#8217;m trying to do the same thing (make a link to the post author), and on the index pages, instead of the author&#8217;s name, it says author&#8221;&gt;author, and the first author is a link, but it goes to an Oops error.  Any idea what I did wrong?   I&#8217;m on the latest version of wordpress and X.  The website is travel studies.org.  You can see the problem on the home page.  Thanks for your help. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87082</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87082</link>
					<pubDate>Mon, 18 Aug 2014 20:00:05 +0000</pubDate>
					<dc:creator>Cousett</dc:creator>

					<description>
						<![CDATA[
						<p>Are you also using a child theme based on Ethos? Could you send us your login information so we can look into it further. </p>
<p>To do this, you can make a post with the following info:</p>
<p>&#8211; Link to your site<br />
&#8211; WordPress Admin username / password<br />
&#8211; FTP credentials</p>
<p><strong>Don&#8217;t forget to select Set as private reply. This ensures your information is only visible to our staff. </strong></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87116</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87116</link>
					<pubDate>Mon, 18 Aug 2014 20:59:21 +0000</pubDate>
					<dc:creator>STEVE H</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87340</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87340</link>
					<pubDate>Tue, 19 Aug 2014 05:43:02 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Steve,</p>
<p>Yes please send us the ftp credentials as well.</p>
<p>Don’t forget to select Set as private reply. This ensures your information is only visible to our staff. </p>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87504</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87504</link>
					<pubDate>Tue, 19 Aug 2014 11:54:15 +0000</pubDate>
					<dc:creator>STEVE H</dc:creator>

					<description>
						<![CDATA[
						This reply has been marked as private.						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87589</guid>
					<title><![CDATA[Reply To: Adding Author&#039;s Name to Post as a Link to Author Page?]]></title>
					<link>https://theme.co/archive/forums/topic/adding-authors-name-to-post-as-a-link-to-author-page/#post-87589</link>
					<pubDate>Tue, 19 Aug 2014 13:38:36 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Steve,</p>
<p>I could not login using the ftp credentials you gave.</p>
<p>Please put this code in functions.php of your child theme.</p>
<pre><code>
&lt;?php

// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to X in this file.
// =============================================================================
if ( ! function_exists( &#039;x_ethos_entry_meta&#039; ) ) :
  function x_ethos_entry_meta() {

    $author = sprintf( &#039; by &lt;a href=&quot;&#039;.get_the_author_link().&#039;&quot;&gt;%s&lt;/a&gt;&lt;/span&gt;&#039;,
      get_the_author()
    );
    
    $date = sprintf( &#039;&lt;span&gt;&lt;time class=&quot;entry-date&quot; datetime=&quot;%1$s&quot;&gt;%2$s&lt;/time&gt;&lt;/span&gt;&#039;,
      esc_attr( get_the_date( &#039;c&#039; ) ),
      esc_html( get_the_date() )
    );

    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; &#039;
                              . $category-&gt;name
                              . &#039;&lt;/a&gt;&#039;
                              . $separator;
        }

        $categories_list = sprintf( &#039;&lt;span&gt;In %s&#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; &#039;
                            . $category-&gt;name
                            . &#039;&lt;/a&gt;&#039;
                            . $separator;
      }

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

    if ( comments_open() ) {
      $title  = get_the_title();
      $link   = get_comments_link();
      $number = get_comments_number();
      if ( $number == 0 ) {
        $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&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 ) ),
          __( &#039;Leave a Comment&#039; , &#039;__x__&#039; )
        );
      } else if ( $number == 1 ) {
        $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&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 ) ),
          $number . &#039; &#039; . __( &#039;Comment&#039; , &#039;__x__&#039; )
        );
      } else {
        $comments = sprintf( &#039;&lt;span&gt;&lt;a href=&quot;%1$s&quot; title=&quot;%2$s&quot; class=&quot;meta-comments&quot;&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 ) ),
          $number . &#039; &#039; . __( &#039;Comments&#039; , &#039;__x__&#039; )
        );
      }
    } else {
      $comments = &#039;&#039;;
    }

    $post_type           = get_post_type();
    $post_type_post      = $post_type == &#039;post&#039;;
    $post_type_portfolio = $post_type == &#039;x-portfolio&#039;;
    $no_post_meta        = x_get_option( &#039;x_blog_enable_post_meta&#039; ) == 0;
    $no_portfolio_meta   = x_get_option( &#039;x_portfolio_enable_post_meta&#039; ) == 0;

    if ( $post_type_post &amp;&amp; $no_post_meta || $post_type_portfolio &amp;&amp; $no_portfolio_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;,
        $categories_list,
        $author,
        $date,
        $comments
      );
    }

  }
endif;
</code></pre>
<p>Thanks</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

