<?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>Author Link and Author Archive Page &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/author-link-and-author-archive-page/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/feed/</link>
		<description></description>
		<lastBuildDate>Fri, 17 Oct 2025 12:59:12 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251286</guid>
					<title><![CDATA[Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251286</link>
					<pubDate>Thu, 16 Apr 2015 13:46:00 +0000</pubDate>
					<dc:creator>olivial</dc:creator>

					<description>
						<![CDATA[
						<p>Hello, </p>
<p>I have two questions about authors/users on my site. </p>
<p>1. For some reason the author/post meta link is not linking to anything. It used to link to an archive page of that specific author&#8217;s past posts. How do I get this link back in the post meta?</p>
<p>2. How can I customize the author archive page? I want to include a photo (user avatar photo) of the author and their name with a short bio/description of the author preferably on the top of the page. This is a pretty basic WP function, but I cannot figure out how to get it to work with X-Themes. </p>
<p>Thank you for your help!<br />
Olivia</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251391</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251391</link>
					<pubDate>Thu, 16 Apr 2015 16:24:44 +0000</pubDate>
					<dc:creator>John Ezra</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Olivia,</p>
<p>Thanks for writing in! To assist you with this issue, would you mind providing us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything. Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251395</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251395</link>
					<pubDate>Thu, 16 Apr 2015 16:34:49 +0000</pubDate>
					<dc:creator>olivial</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251566</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-251566</link>
					<pubDate>Thu, 16 Apr 2015 20:17:31 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Olivial,</p>
<p>Thanks for writing in!</p>
<p>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><strong>#1:</strong> To add author link to your post meta, add following in your child theme&#8217;s <strong>functions.php</strong> file:</p>
<pre><code>// Entry Meta
// =============================================================================

if ( ! function_exists( &#039;x_ethos_entry_meta&#039; ) ) :
  function x_ethos_entry_meta() {

    //
    // Author.
    //

    // $author = sprintf( &#039; %1$s %2$s&lt;/span&gt;&#039;,
    //   __( &#039;by&#039;, &#039;__x__&#039; ),
    //   get_the_author()
    // );

    $author = &#039; by &lt;a href=&quot;&#039;.  get_author_posts_url(get_the_author_meta( &#039;ID&#039; )) . &#039;&quot;&gt;&#039; . get_the_author() . &#039;&lt;/a&gt;&lt;/span&gt;&#039;;

    //
    // Date.
    //

    $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() )
    );

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

        $categories_list = sprintf( &#039;&lt;span&gt;%1$s %2$s&#039;,
          __( &#039;In&#039;, &#039;__x__&#039; ),
          trim( $categories_output, $separator )
        );
      } else {
        $categories_list = &#039;&#039;;
      }
    } elseif ( get_post_type( get_the_ID() ) != &#039;post&#039; ) {

      if ( has_term( &#039;&#039;, &#039;video-cat&#039;, NULL ) ) {
        $categories        = get_the_terms( get_the_ID(), &#039;video-cat&#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;video-cat&#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;%1$s %2$s&#039;,
          __( &#039;In&#039;, &#039;__x__&#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;%1$s %2$s&#039;,
        __( &#039;In&#039;, &#039;__x__&#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;%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;,
        $categories_list,
        $author,
        $date,
        $comments
      );
    }

  }
endif;
</code></pre>
<p><strong>#2:</strong> To show author box above the posts on your author page, please add following in your child theme&#8217;s <strong>functions.php</strong> file:</p>
<pre><code>// Show Author Box on Author Page
// =============================================================================

function add_author_meta() {
  if ( is_author() ) {
    $id = get_the_author_meta( &#039;ID&#039; );
    echo do_shortcode(&#039;[author id=&quot;&#039;.$id.&#039;&quot;]&#039;);
  }
}

add_action(&#039;x_before_view_global__index&#039;, &#039;add_author_meta&#039;);
</code></pre>
<p>Hope this helps. 🙂</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-252166</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-252166</link>
					<pubDate>Fri, 17 Apr 2015 15:21:45 +0000</pubDate>
					<dc:creator>olivial</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you so much! That worked!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-252224</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-252224</link>
					<pubDate>Fri, 17 Apr 2015 16:50:02 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re most welcome.</p>
<p>Let us know if you need anything else.</p>
<p>Thanks. Have a great day! 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-263126</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-263126</link>
					<pubDate>Fri, 01 May 2015 14:32:51 +0000</pubDate>
					<dc:creator>Syed Shadab M</dc:creator>

					<description>
						<![CDATA[
						<p>Hello there,</p>
<p>Thanks for the information provided here. Can we load a custom author template here? x_get_view? </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-263401</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-263401</link>
					<pubDate>Fri, 01 May 2015 23:48:10 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Not possible, because it&#8217;s part of functions.php but you can create another template and add it at /x-child/framework/views/global/</p>
<p>Let say you named it /x-child/framework/views/ethos/author-template.php and inside it should be this code : </p>
<p><code>&lt;?php x_ethos_entry_meta() ?&gt;</code></p>
<p>Or this code :</p>
<p><code>&lt;?php  $id = get_the_author_meta( &#039;ID&#039; ); echo do_shortcode(&#039;[author id=&quot;&#039;.$id.&#039;&quot;]&#039;); ?&gt;</code></p>
<p>Then you can call it as </p>
<p><code>x_get_view(&#039;ethos&#039;, &#039;author-template&#039;);</code></p>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-291994</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-291994</link>
					<pubDate>Thu, 04 Jun 2015 03:07:14 +0000</pubDate>
					<dc:creator>Joseph B</dc:creator>

					<description>
						<![CDATA[
						<p>Hello the code that was provided does not work for me. I will provide my URL in the next private post.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-291995</guid>
					<title><![CDATA[Reply To: Author Link and Author Archive Page]]></title>
					<link>https://theme.co/archive/forums/topic/author-link-and-author-archive-page/#post-291995</link>
					<pubDate>Thu, 04 Jun 2015 03:07:34 +0000</pubDate>
					<dc:creator>Joseph B</dc:creator>

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

					
					
				</item>

					
		
	</channel>
	</rss>

