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;
Related Posts:
- How to display by default only published posts/pages in the admin area?
- Using single.php from plugin folder instead of default template folder
- Pagination not working on Custom Page Template
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Is there any WordPress alternative to Book module of Drupal?
- Posts vs. Pages
- Adding buttons to Add New Post and Add New Page
- Static posts page with home.php
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- disable Tab post on nav-menus page (Admin)
- WordPress Query Posts From Category Post on Static Page
- Organization of time insensitive content
- What would causes search to return incorrect results?
- Changing permalink of WordPress
- Added a ACF field to custom page and want the results to show as a column in admin
- Show post count in custom taxonomy page
- Put page on Archived statut after end of publication date
- post and page and custom post type
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Permalink base only for posts
- Allow users to create their own page/s
- Make a custom URL and link to custom Template
- Automatically delete default posts and pages on theme install?
- How to have more post in a page than in your home page
- custom post type single page template not working
- How to have 2 posting pages on a blog
- Edit Page button is gone
- User Selectable Delete of Pages
- Custom post types related to same custom post type?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- 2 dynamic sidebars registered, not showing up
- Dynamically switch template on click
- Multiple Loops Breaking Pages
- How to get ID of the page included with get_page()?
- Posts vs Pages and categories
- How to dynamically parse and transform post/page content before displaying it?
- How to make default “Privacy Policy Page” a normal page?
- Is it possible to customize the post according to post format in single.php?
- Customize rel=canonical tag for single blog post
- a little direction on custom post type
- Proper way of establishing custom landing pages in WordPress
- Format latest/newest post differently
- is_page Funtion for Posts ?
- Custom taxonomy archive page problem
- is_page() and is_page_template() not being differentiated
- Tell WP to use a specific template file in posts
- Admin – no Featured image choice in create new/page|post
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- How to detect when admin user is on the All Posts page?
- relating business and products with custom taxonomy?
- Best Way to Add UnEditable HTML to Posts
- static landing page leading to author specific pages w/ “live” content
- How safe is it to delete old posts edits to save database space?
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Custom Post Type archive
- WordPress custom post type with folder structure in slug
- Using setup_postdata() with multi-dimensional array
- Total number of posts in query (category/tag/author/search results/main page…)
- Is codex right on deleting post?
- Custom Permalink Structure for Pages & Posts
- Getting a “404 Not Found” error when “Preview Changes” is clicked
- Why won’t pagination work?
- Check if a custom post type has already been created
- How to create a “latest news” page showing a list of posts from blog category
- Edit multiple custom post types while saving a new or edited post
- Create a custom posts page
- How do you search for a post or page with a certain url on the WordPress admin panel?
- How to add some html formated text to every new post in WordPress
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- if in category but only with post meta
- How to get different Related Posts
- Intercept page request and add value to it
- How to add convenient buttons for new custom post statuses
- WordPress 302 Redirect to Random Product/Post/Page
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- Output Post with ACF Fields into other Post
- How to create a page that shows the last 10 posts?
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- $_GET parametters not working in an specific template
- New Posts and Pages Won’t Save
- My Custom Post Type Still Using index.php
- get_children returns older images
- Show custom post with custom categories with specific slug
- register_post_type permalink
- Display the 2nd category name of a custom post type without error if its null?
- Posts and Pages: 404 Page not found
- Auto delete posts based on content text
- How to call posts under a specific category on static front page?
- Querying another post category to match current post and display in loop
- Custom home page with full post for first one only
- Custom Post Limit for homepage only without plugin?
- the_content() Not Grabbing All Content
- Display Featured Posts Grid on Static Page (Gazette)
- Detecting current page from class method
- Display value of custom field at the beginning of a post
- Having pages after specifying post_type post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- datepicker value in mysql