We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f69df commit 00b5895Copy full SHA for 00b5895
1 file changed
themes/osi/inc/template-tags.php
@@ -14,8 +14,12 @@
14
function osi_posted_on( $format = '' ) {
15
16
$time_string = '<time class="byline--date entry-date published" datetime="%1$s">%2$s</time>';
17
- if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
18
- $time_string = '<time class="byline--date entry-date published updated" datetime="%3$s">%4$s</time>';
+
+ // Don't display the updated date for blog posts.
19
+ if ( 'post' !== get_post_type() ) {
20
+ if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
21
+ $time_string .= '<time class="byline--date entry-date published updated" datetime="%3$s">%4$s</time>';
22
+ }
23
}
24
25
$time_string = sprintf(
0 commit comments