<?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>Post meta/social media share buttons &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/feed/</link>
		<description></description>
		<lastBuildDate>Mon, 13 Oct 2025 11:39:22 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-158211</guid>
					<title><![CDATA[Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-158211</link>
					<pubDate>Thu, 04 Dec 2014 13:43:31 +0000</pubDate>
					<dc:creator>bc</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Hope you can help us. We set up a Renew-Child-Theme for our site (<a href="http://www.ahja.ch/div/mueller/" rel="nofollow">http://www.ahja.ch/div/mueller/</a>) and were trying to change a few things with the help in this forum but it didn&#8217;t work so far.</p>
<p>1. The meta post line should be in German, like this:</p>
<p>17. September 2014 von Philippe Müller</p>
<p>instead of</p>
<p>Philippe Müller / 09.2014 / Allgemein / 1 Comment</p>
<p>2. In the comment (<a href="http://www.ahja.ch/div/mueller/?p=1841" rel="nofollow">http://www.ahja.ch/div/mueller/?p=1841</a>) we would like to change the date too. </p>
<p>02.12.2014 um 14:18 (= Day.Month.Year)</p>
<p>instead of</p>
<p>12.02.2014 at 14:18</p>
<p>3. Where can we translate &#8220;One Comment on&#8221;? which appears when someone writes a comment.</p>
<p>4. How can we add Facebook and Twitter share buttons at the end of each post?</p>
<p>Thank you in advance for your help. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-158380</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-158380</link>
					<pubDate>Thu, 04 Dec 2014 17:55:24 +0000</pubDate>
					<dc:creator>Zeshan</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in!</p>
<p><strong>#1:</strong> Add following code in your child theme&#8217;s <strong>functions.php</strong> file:</p>
<pre><code>if ( ! function_exists( &#039;x_renew_entry_meta&#039; ) ) :
  function x_renew_entry_meta() {

    //
    // Author.
    //

    $author = sprintf( &#039;&lt;span&gt;%s&lt;/span&gt;&#039;,
      get_the_author()
    );

    //
    // 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( &#039;m.Y&#039; ) )
    );

    //
    // 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;%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;&#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;%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 {
      $date = sprintf( &#039;&lt;time class=&quot;entry-date&quot; datetime=&quot;%1$s&quot;&gt;%2$s&lt;/time&gt;&#039;,
        esc_attr( get_the_date( &#039;c&#039; ) ),
        esc_html( get_the_date( &#039;d.F Y&#039; ) )
      );
      printf( &#039;&lt;p class=&quot;p-meta&quot;&gt;%1$s von %2$s&lt;/p&gt;&#039;,
        $date,
        $author
      );
    }

  }
endif;
</code></pre>
<p><strong>#2:</strong> Add following in your child theme&#8217;s <strong>functions.php</strong> file:</p>
<pre><code>if ( ! function_exists( &#039;x_renew_comment&#039; ) ) :
  function x_renew_comment( $comment, $args, $depth ) {

    $GLOBALS[&#039;comment&#039;] = $comment;
    switch ( $comment-&gt;comment_type ) :
      case &#039;pingback&#039; :  // 1
      case &#039;trackback&#039; : // 1
    ?&gt;
    &lt;li &lt;?php comment_class(); ?&gt; id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot;&gt;
      &lt;p&gt;&lt;?php _e( &#039;Pingback:&#039;, &#039;__x__&#039; ); ?&gt; &lt;?php comment_author_link(); ?&gt; &lt;?php edit_comment_link( __( &#039;(Edit)&#039;, &#039;__x__&#039; ), &#039;&lt;span class=&quot;edit-link&quot;&gt;&#039;, &#039;&lt;/span&gt;&#039; ); ?&gt;&lt;/p&gt;
    &lt;?php
        break;
      default : // 2
      GLOBAL $post;
      if ( X_WOOCOMMERCE_IS_ACTIVE ) :
        $rating = esc_attr( get_comment_meta( $GLOBALS[&#039;comment&#039;]-&gt;comment_ID, &#039;rating&#039;, true ) );
      endif;
      if ( x_is_product() ) {
        $comment_avatar = get_avatar( $comment, 240 );
      } else {
        $comment_avatar = get_avatar( $comment, 120 );
      }
    ?&gt;
    &lt;li id=&quot;li-comment-&lt;?php comment_ID(); ?&gt;&quot; &lt;?php comment_class(); ?&gt;&gt;
      &lt;article id=&quot;comment-&lt;?php comment_ID(); ?&gt;&quot; class=&quot;comment&quot;&gt;
        &lt;?php
        printf( &#039;&lt;div class=&quot;x-comment-img&quot;&gt;%s&lt;/div&gt;&#039;,
          &#039;&lt;span class=&quot;avatar-wrap cf&quot;&gt;&#039; . $comment_avatar . &#039;&lt;/span&gt;&#039;
        );
        ?&gt;
        &lt;?php if ( ! x_is_product() ) : ?&gt;
        &lt;div class=&quot;x-reply&quot;&gt;
          &lt;?php comment_reply_link( array_merge( $args, array( &#039;reply_text&#039; =&gt; __( &#039;Reply &lt;span class=&quot;comment-reply-link-after&quot;&gt;&lt;i class=&quot;x-icon-reply&quot;&gt;&lt;/i&gt;&lt;/span&gt;&#039;, &#039;__x__&#039; ), &#039;depth&#039; =&gt; $depth, &#039;max_depth&#039; =&gt; $args[&#039;max_depth&#039;] ) ) ); ?&gt;
        &lt;/div&gt;
        &lt;?php endif; ?&gt;
        &lt;div class=&quot;x-comment-wrap&quot;&gt;
          &lt;header class=&quot;x-comment-header&quot;&gt;
            &lt;?php
            printf( &#039;&lt;cite class=&quot;x-comment-author&quot;&gt;%1$s&lt;/cite&gt;&#039;,
              get_comment_author_link()
            );
            if ( x_is_product() &amp;&amp; get_option(&#039;woocommerce_enable_review_rating&#039;) == &#039;yes&#039; ) : ?&gt;
              &lt;div class=&quot;star-rating-container&quot;&gt;
                &lt;div itemprop=&quot;reviewRating&quot; itemscope itemtype=&quot;http://schema.org/Rating&quot; class=&quot;star-rating&quot; title=&quot;&lt;?php echo sprintf(__( &#039;Rated %d out of 5&#039;, &#039;woocommerce&#039; ), $rating) ?&gt;&quot;&gt;
                  &lt;span style=&quot;width:&lt;?php echo ( intval( get_comment_meta( $GLOBALS[&#039;comment&#039;]-&gt;comment_ID, &#039;rating&#039;, true ) ) / 5 ) * 100; ?&gt;%&quot;&gt;&lt;strong itemprop=&quot;ratingValue&quot;&gt;&lt;?php echo intval( get_comment_meta( $GLOBALS[&#039;comment&#039;]-&gt;comment_ID, &#039;rating&#039;, true ) ); ?&gt;&lt;/strong&gt; &lt;?php _e( &#039;out of 5&#039;, &#039;woocommerce&#039; ); ?&gt;&lt;/span&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;?php endif;
            printf( &#039;&lt;div&gt;&lt;a href=&quot;%1$s&quot; class=&quot;x-comment-time&quot;&gt;&lt;time datetime=&quot;%2$s&quot;&gt;%3$s&lt;/time&gt;&lt;/a&gt;&lt;/div&gt;&#039;,
              esc_url( get_comment_link( $comment-&gt;comment_ID ) ),
              get_comment_time( &#039;c&#039; ),
              sprintf( __( &#039;%1$s um %2$s&#039;, &#039;__x__&#039; ),
                get_comment_date( &#039;d.m.Y&#039; ),
                get_comment_time()
              )
            );
            edit_comment_link( __( &#039;&lt;i class=&quot;x-icon-edit&quot;&gt;&lt;/i&gt; Edit&#039;, &#039;__x__&#039; ) );
            ?&gt;
          &lt;/header&gt;
          &lt;?php if ( &#039;0&#039; == $comment-&gt;comment_approved ) : ?&gt;
            &lt;p class=&quot;x-comment-awaiting-moderation&quot;&gt;&lt;?php _e( &#039;Your comment is awaiting moderation.&#039;, &#039;__x__&#039; ); ?&gt;&lt;/p&gt;
          &lt;?php endif; ?&gt;
          &lt;section class=&quot;x-comment-content&quot;&gt;
            &lt;?php comment_text(); ?&gt;
          &lt;/section&gt;
        &lt;/div&gt;
      &lt;/article&gt;
    &lt;?php
        break;
    endswitch;

  }
endif;
</code></pre>
<p><strong>#3:</strong> If you&#8217;re using WPML, you can use WPML string translation to translate the strings. You can review this article for more information: <a href="http://wpml.org/documentation/getting-started-guide/string-translation/" rel="nofollow">http://wpml.org/documentation/getting-started-guide/string-translation/</a></p>
<p><strong>#4:</strong> Add following in your child theme&#8217;s <strong>functions.php</strong> file:</p>
<pre><code>add_filter( &#039;the_content&#039;, &#039;custom_author_code&#039;);

function custom_author_code($content) {
   if ( is_singular(&#039;post&#039;) ) {
      return $content . do_shortcode(&#039;[share title=&quot;Share this Post&quot; facebook=&quot;true&quot; twitter=&quot;true&quot; google_plus=&quot;true&quot; linkedin=&quot;true&quot; pinterest=&quot;true&quot; reddit=&quot;true&quot; email=&quot;true&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/post-metasocial-media-share-buttons/#post-182032</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-182032</link>
					<pubDate>Tue, 13 Jan 2015 15:15:51 +0000</pubDate>
					<dc:creator>bc</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thank you for your help. I copied the code you provided in the child theme’s functions.php file. The meta post line looks fine (see <a href="https://www.ahja.ch/div/mueller/" rel="nofollow">https://www.ahja.ch/div/mueller/</a>), but the posts can&#8217;t be found anymore (404 error), see <a href="https://www.ahja.ch/div/mueller/?p=1841" rel="nofollow">https://www.ahja.ch/div/mueller/?p=1841</a></p>
<p>Something with the #4 social media share buttons code has to be wrong. Without this code it&#8217;s working properly. </p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-182446</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-182446</link>
					<pubDate>Wed, 14 Jan 2015 03:43:30 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>For #4</p>
<p>You can create _content-the-content.php file in wp-content/themes/x-child-renew/framework/views/global<br />
and copy the code below into that file.</p>
<pre><code>
&lt;?php

// =============================================================================
// VIEWS/GLOBAL/_CONTENT-THE-CONTENT.PHP
// -----------------------------------------------------------------------------
// Display of the_content() for various entries.
// =============================================================================

?&gt;

&lt;?php do_action( &#039;x_before_the_content_begin&#039; ); ?&gt;

&lt;div class=&quot;entry-content content&quot;&gt;

&lt;?php do_action( &#039;x_after_the_content_begin&#039; ); ?&gt;

  &lt;?php the_content(); 
  if(is_single()):
    echo do_shortcode(&#039;[share title=&quot;Share this Post&quot; facebook=&quot;true&quot; twitter=&quot;true&quot; google_plus=&quot;true&quot; linkedin=&quot;true&quot; pinterest=&quot;true&quot; reddit=&quot;true&quot; email=&quot;true&quot;]&#039;);
  endif;  
  ?&gt;
  &lt;?php x_link_pages(); ?&gt;

&lt;?php do_action( &#039;x_before_the_content_end&#039; ); ?&gt;

&lt;/div&gt;

&lt;?php do_action( &#039;x_after_the_content_end&#039; ); ?&gt;
</code></pre>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-184442</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-184442</link>
					<pubDate>Fri, 16 Jan 2015 14:48:02 +0000</pubDate>
					<dc:creator>bc</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, </p>
<p>Thank you. I created _content-the-content.php file in wp-content/themes/x-child-renew/framework/views/global But there is still a 404 error showing up when trying to open a post: <a href="https://www.ahja.ch/div/mueller/?p=1841" rel="nofollow">https://www.ahja.ch/div/mueller/?p=1841</a> (or try here: <a href="https://www.ahja.ch/div/mueller/" rel="nofollow">https://www.ahja.ch/div/mueller/</a></p>
<p>Hope you can help.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-184971</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-184971</link>
					<pubDate>Sat, 17 Jan 2015 10:54:58 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Please update your theme and X shortocde referring to <a href="theme.co/x/member/kb/updating-your-theme-and-plugins/" rel="nofollow">theme.co/x/member/kb/updating-your-theme-and-plugins/</a>.</p>
<p>If the issue persist after updating let us know about it.</p>
<p>Thank you.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-186160</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-186160</link>
					<pubDate>Mon, 19 Jan 2015 14:29:38 +0000</pubDate>
					<dc:creator>bc</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there, </p>
<p>Thank you. I updated the theme as well as X shortcode, but the issue persists. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-186575</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-186575</link>
					<pubDate>Tue, 20 Jan 2015 05:50:45 +0000</pubDate>
					<dc:creator>Paul R</dc:creator>

					<description>
						<![CDATA[
						<p>Hi</p>
<p>Try to update your permalinks.</p>
<p><a href="http://screencast.com/t/04OB3mGG4" rel="nofollow">http://screencast.com/t/04OB3mGG4</a></p>
<p>Hope that helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-189072</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-189072</link>
					<pubDate>Thu, 22 Jan 2015 14:42:41 +0000</pubDate>
					<dc:creator>bc</dc:creator>

					<description>
						<![CDATA[
						<p>Hi, </p>
<p>That helped. Thank you for the support. </p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-189633</guid>
					<title><![CDATA[Reply To: Post meta/social media share buttons]]></title>
					<link>https://theme.co/archive/forums/topic/post-metasocial-media-share-buttons/#post-189633</link>
					<pubDate>Fri, 23 Jan 2015 03:17:56 +0000</pubDate>
					<dc:creator>Darshana</dc:creator>

					<description>
						<![CDATA[
						<p>Glad we were able to help 🙂</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

