Skip to content

Commit f2ebfd1

Browse files
Merge pull request #102 from OpenSourceOrg/merge/blog-post-date
Exclude meeting minutes post type for displaying updated time
2 parents 8ebf47f + 3ef6c23 commit f2ebfd1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

themes/osi/inc/template-tags.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function osi_posted_on( $format = '' ) {
1717

1818
$time_string = '<time class="byline--date entry-date published" datetime="%1$s">%2$s</time>';
1919

20-
// Don't display the updated date for blog posts.
21-
if ( 'post' !== get_post_type() ) {
20+
// Don't display the updated date for blog posts and meeting-minutes.
21+
if ( 'post' !== get_post_type() && 'meeting-minutes' !== get_post_type() ) {
2222
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
2323
$time_string .= '<time class="byline--date entry-date published updated" datetime="%3$s">%4$s</time>';
2424
}

0 commit comments

Comments
 (0)