<?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>Display the Last Updated Date instead of the original published date &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/feed/</link>
		<description></description>
		<lastBuildDate>Sat, 18 Oct 2025 16:23:07 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180023</guid>
					<title><![CDATA[Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180023</link>
					<pubDate>Fri, 09 Jan 2015 22:06:30 +0000</pubDate>
					<dc:creator>Ftheme</dc:creator>

					<description>
						<![CDATA[
						<p>Hello, First, thanks for your great theme, I wanted to force the date to be the &#8221;<strong>last updated</strong>&#8221; on the single post and also in the homepage, but i can&#8217;t find any way to do that using X theme.  I mean the date that will be shown should be the <strong>laste modified date</strong> only and not the original <strong>published</strong> date.<br />
I&#8217;m using the <strong>ethos</strong>.</p>
<p>Have a great day.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180234</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180234</link>
					<pubDate>Sat, 10 Jan 2015 09:17:55 +0000</pubDate>
					<dc:creator>Christopher</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</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>Add this code in function.php file located in child theme folder :</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()
    );

    //
    // 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_modified_date( &#039;c&#039; ) ),
      esc_html( get_the_modified_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;;
      }
    } 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>Hope it helps.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180275</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180275</link>
					<pubDate>Sat, 10 Jan 2015 11:16:30 +0000</pubDate>
					<dc:creator>Ftheme</dc:creator>

					<description>
						<![CDATA[
						<p>It Worked perfectly, I already have a child theme.<br />
You&#8217;ve The best support ever.<br />
Have a great day.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180539</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-180539</link>
					<pubDate>Sun, 11 Jan 2015 03:12:46 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>You&#8217;re welcome. Glad we could help. 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-302605</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-302605</link>
					<pubDate>Mon, 15 Jun 2015 18:36:31 +0000</pubDate>
					<dc:creator>Sean S</dc:creator>

					<description>
						<![CDATA[
						<p>If anyone else comes across this post, just change ethos to your stack name. I did it for renew and it worked fine.</p>
<pre><code>if ( ! function_exists( &#039;x_ethos_entry_meta&#039; ) ) :
  function x_ethos_entry_meta() {</code></pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-302711</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-302711</link>
					<pubDate>Mon, 15 Jun 2015 20:02:12 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>Glad to hear that.</p>
<p>Thank for the tip.</p>
<p>Have a great day! 🙂</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-680546</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-680546</link>
					<pubDate>Thu, 26 Nov 2015 21:07:58 +0000</pubDate>
					<dc:creator>blmg1</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
I tried this code and it worked for the blog page. How do I do the same thing for the homepage, where I have my recent posts shortcode?</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-680658</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-680658</link>
					<pubDate>Thu, 26 Nov 2015 23:41:37 +0000</pubDate>
					<dc:creator>Nabeel A</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in! To assist you with this issue, we&#8217;ll first need you to provide 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.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-681219</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-681219</link>
					<pubDate>Fri, 27 Nov 2015 14:15:49 +0000</pubDate>
					<dc:creator>blmg1</dc:creator>

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

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-681343</guid>
					<title><![CDATA[Reply To: Display the Last Updated Date instead of the original published date]]></title>
					<link>https://theme.co/archive/forums/topic/display-the-last-updated-date-instead-of-the-original-published-date/#post-681343</link>
					<pubDate>Fri, 27 Nov 2015 16:15:14 +0000</pubDate>
					<dc:creator>Jade</dc:creator>

					<description>
						<![CDATA[
						<p>Hi <a href="https://theme.co/archive/users/blmg1/" class="bbp-user-mention bbp-user-id-44114"> @blmg1</a>.</p>
<p>Please add this code in the <strong>functions.php</strong> file:</p>
<pre><code>/ =============================================================================
// Add Excerpt to Recent Posts
// =============================================================================
  
function x_shortcode_recent_posts_v2code( $atts ) {
  extract( shortcode_atts( array(
    &#039;id&#039;          =&gt; &#039;&#039;,
    &#039;class&#039;       =&gt; &#039;&#039;,
    &#039;style&#039;       =&gt; &#039;&#039;,
    &#039;type&#039;        =&gt; &#039;post&#039;,
    &#039;count&#039;       =&gt; &#039;&#039;,
    &#039;category&#039;    =&gt; &#039;&#039;,
    &#039;offset&#039;      =&gt; &#039;&#039;,
    &#039;orientation&#039; =&gt; &#039;&#039;,
    &#039;no_image&#039;    =&gt; &#039;&#039;,
    &#039;fade&#039;        =&gt; &#039;&#039;,
    &#039;enable_excerpt&#039; =&gt; &#039;&#039;
  ), $atts, &#039;x_recent_posts&#039; ) );

  $allowed_post_types = apply_filters( &#039;cs_recent_posts_post_types&#039;, array( &#039;post&#039; =&gt; &#039;post&#039; ) );
  $type = ( isset( $allowed_post_types[$type] ) ) ? $allowed_post_types[$type] : &#039;post&#039;;

  $id            = ( $id          != &#039;&#039;          ) ? &#039;id=&quot;&#039; . esc_attr( $id ) . &#039;&quot;&#039; : &#039;&#039;;
  $class         = ( $class       != &#039;&#039;          ) ? &#039;x-recent-posts cf &#039; . esc_attr( $class ) : &#039;x-recent-posts cf&#039;;
  $style         = ( $style       != &#039;&#039;          ) ? &#039;style=&quot;&#039; . $style . &#039;&quot;&#039; : &#039;&#039;;
  $count         = ( $count       != &#039;&#039;          ) ? $count : 3;
  $category      = ( $category    != &#039;&#039;          ) ? $category : &#039;&#039;;
  $category_type = ( $type        == &#039;post&#039;      ) ? &#039;category_name&#039; : &#039;portfolio-category&#039;;
  $offset        = ( $offset      != &#039;&#039;          ) ? $offset : 0;
  $orientation   = ( $orientation != &#039;&#039;          ) ? &#039; &#039; . $orientation : &#039; horizontal&#039;;
  $no_image      = ( $no_image    == &#039;true&#039;      ) ? $no_image : &#039;&#039;;
  $fade          = ( $fade        == &#039;true&#039;      ) ? $fade : &#039;false&#039;;
  $enable_excerpt = ( $enable_excerpt == &#039;true&#039; ) ? true:false;

  $js_params = array(
    &#039;fade&#039; =&gt; ( $fade == &#039;true&#039; )
  );

  $data = cs_generate_data_attributes( &#039;recent_posts&#039;, $js_params );

  $output = &quot;&lt;div {$id} class=\&quot;{$class}{$orientation}\&quot; {$style} {$data} data-fade=\&quot;{$fade}\&quot; &gt;&quot;;

    $q = new WP_Query( array(
      &#039;orderby&#039;          =&gt; &#039;date&#039;,
      &#039;post_type&#039;        =&gt; &quot;{$type}&quot;,
      &#039;posts_per_page&#039;   =&gt; &quot;{$count}&quot;,
      &#039;offset&#039;           =&gt; &quot;{$offset}&quot;,
      &quot;{$category_type}&quot; =&gt; &quot;{$category}&quot;
    ) );

    if ( $q-&gt;have_posts() ) : while ( $q-&gt;have_posts() ) : $q-&gt;the_post();
     $content_excerpt = get_the_excerpt();

      if ( $no_image == &#039;true&#039; ) {
        $image_output       = &#039;&#039;;
        $image_output_class = &#039;no-image&#039;;
      } else {
        $image              = wp_get_attachment_image_src( get_post_thumbnail_id(), &#039;entry-cropped&#039; );
        $bg_image           = ( $image[0] != &#039;&#039; ) ? &#039; style=&quot;background-image: url(&#039; . $image[0] . &#039;);&quot;&#039; : &#039;&#039;;
        $image_output       = &#039;&lt;div class=&quot;x-recent-posts-img&quot;&#039; . $bg_image . &#039;&gt;&lt;/div&gt;&#039;;
        $image_output_class = &#039;with-image&#039;;
      }

      $output .= &#039;&lt;a class=&quot;x-recent-post&#039; . $count . &#039; &#039; . $image_output_class . &#039;&quot; href=&quot;&#039; . get_permalink( get_the_ID() ) . &#039;&quot; title=&quot;&#039; . esc_attr( sprintf( __( &#039;Permalink to: &quot;%s&quot;&#039;, csl18n() ), the_title_attribute( &#039;echo=0&#039; ) ) ) . &#039;&quot;&gt;&#039;
                 . &#039;&lt;article id=&quot;post-&#039; . get_the_ID() . &#039;&quot; class=&quot;&#039; . implode( &#039; &#039;, get_post_class() ) . &#039;&quot;&gt;&#039;
                   . &#039;&lt;div class=&quot;entry-wrap&quot;&gt;&#039;
                     . $image_output
                     . &#039;&lt;div class=&quot;x-recent-posts-content&quot;&gt;&#039;
                       . &#039;&lt;h3 class=&quot;h-recent-posts&quot;&gt;&#039; . get_the_title() . &#039;&lt;/h3&gt;&#039;
                       . &#039;&lt;span class=&quot;x-recent-posts-date&quot;&gt;&#039; . get_the_modified_date() . &#039;&lt;/span&gt;&#039;
                       . ( $enable_excerpt ? &#039;&lt;span class=&quot;x-recent-posts-excerpt&quot;&gt;&#039; . strip_tags($content_excerpt ) . &#039;&lt;/span&gt;&#039; : &#039;&#039; )
                     . &#039;&lt;/div&gt;&#039;
                   . &#039;&lt;/div&gt;&#039;
                 . &#039;&lt;/article&gt;&#039;
               . &#039;&lt;/a&gt;&#039;;

    endwhile; endif; wp_reset_postdata();

  $output .= &#039;&lt;/div&gt;&#039;;

  return $output;
}

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

function change_recent_posts_to_v2() {
  remove_shortcode( &#039;recent_posts&#039; );
  add_shortcode( &#039;recent_posts&#039;, &#039;x_shortcode_recent_posts_v2code&#039; );
}</code></pre>
<p>Hope this helps.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

