[Theme: Tiny Framework] remove article updated date
-
Hello,
I want to remove date modified right below the article title.
I have the following code but don’t know how to update it:
if ( in_array( get_post_type(), array( 'post', 'attachment' ) ) ) { $time_string = '<time class="entry-date published updated" datetime="%1$s" itemprop="datePublished">%2$s</time>'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = '<time class="entry-date published" datetime="%1$s" itemprop="datePublished">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), get_the_date(), esc_attr( get_the_modified_date( 'c' ) ), get_the_modified_date() ); printf( '<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>', esc_html_x( 'Published on', 'Used before publish date.', 'tinyframework' ), esc_url( get_permalink() ), $time_string );
Can you please help me with that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Theme: Tiny Framework] remove article updated date’ is closed to new replies.