Need to display the current date in the header, is there a standard way / plugin to do this? So you can update in the post

$main_page_title = array( 'ID' => 267, // ID страницы 'post_title' => "Сегодня ".date("dmy")." " ); wp_insert_post( $main_page_title ); 

How to make a page?

    1 answer 1

    Add the post_type parameter to the post_type to be passed.

     $main_page_title = array( 'ID' => 267, // ID страницы 'post_title' => "Сегодня ".date("dmy")." ", 'post_type' => 'page' // тип - страница (по умолчанию post) );