How to get 2 or multiple custom post types in wordpress functions.php
In your if statement just add more conditions like this. function et_last_modified_date_blog( $the_date ) { if ( ‘post’ === get_post_type() || ‘movies’ === get_post_type() || ‘etc’ === get_post_type()) { $the_time = get_post_time( ‘His’ ); $the_modified = get_post_modified_time( ‘His’ ); $last_modified = sprintf( __( ‘Last updated %s’, ‘Divi’ ), esc_html( get_post_modified_time( ‘M j, Y’ ) ) … Read more