I acquired essential to update your blog page title using the recent publish title. I acquired the end result by using this code and it is working. I'm using get_header() and page title is within header file. I've different templates in theme and blog is another template page because I'm using wordpress as Content management systems.
One easy options is copy paste the header code into blog template and apply the title. Can there be every other possible ways to customize the title using functions or code without copy pasting complete header code into template file.
$query = new WP_Query( array ( 'orderby' => 'date', 'order' => 'DESC', 'post_type'=>'post') ); $queried_post = get_post($query->post->ID); $title = $queried_post->post_title; _e($title);
Yes, you are able to hook in to the [cde] callback (filter) and alter after that it. After this you don't need to modify each theme's template file. Your callback function then must return the brand new title: