How to show “Published on”-date instead of “Last edited”-date in wordpress post’s

function fe_posted_on() {

    if ( get_the_modified_time() != get_the_time() && false ) {
        printf( __( 'Last Updated: %2$s', 'organic-swell' ),
            'meta-prep meta-prep-author',
            sprintf( '',
                esc_url( get_permalink() ),
                esc_attr( get_the_modified_time() ),
                get_the_modified_date()
            )
        );
    } else {
        printf( __( ' %2$s', 'organic-swell' ),
            'meta-prep meta-prep-author',
            sprintf( '',
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                get_the_date()
            )
        );
    }

}

Leave a Reply

Your email address will not be published. Required fields are marked *

Name *

Available for work