get_queried_object()
stores the original object that was found as a match for the permalink.
It’s the WP_Post object of your News Page
$news_page = get_queried_object();
echo $news_page->post_title;
get_queried_object()
stores the original object that was found as a match for the permalink.
It’s the WP_Post object of your News Page
$news_page = get_queried_object();
echo $news_page->post_title;