Home › Forums › Support › update date on page, how to remove on contact This topic has 3 replies, 2 voices, and was last updated 3 years, 2 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts January 24, 2021 at 1:17 am #1631079 Atefan Hello, i ask once to get the update date on a page and it worked with this php /** * Page date to page */ add_action( 'generate_after_entry_header', 'tu_page_meta' ); function tu_page_meta() { if ( is_singular( 'page' ) ) : ?> <div class="entry-meta"> <?php generate_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; } but i would like to remove this update date on contact and about page, how to do that? Thanks January 24, 2021 at 7:14 am #1631528 DavidStaff Customer Support Hi there, this line: if ( is_singular( 'page' ) ) : ?> becomes: if ( is_singular( 'page' ) && !is_page( array( 'contact', 'about' ) ) ) : ?> In the array ie. array( 'contact', 'about' ) make sure those page slugs match your pages. January 24, 2021 at 8:33 am #1631594 Atefan Works, Thanks a lot! January 24, 2021 at 9:24 am #1631647 DavidStaff Customer Support You’re welcome Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In