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
- Get the Current Page Number
- Stop WP from creating “Sample Page” and “Hello World!” post
- Post/Page Preview Template
- using wp_update_post on save_post
- WordPress plugin to publish to multiple remote WordPress blogs
- Display posts by tag on page
- Custom post type single (permalink) throws a 404 error
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- if custom post type exist
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- Get post id in wordpress action?
- WP_Query do not load specifed number of post
- Run a function when post is deleted?
- Remove slashes (both before and after) in relative post url
- Specifying # of Posts per page using inline post plugin (:
- Edit custom post type admin menu link
- How to include a post type in the admin/backend?
- Can I use images as anchor tags with
- Create posts under certain page
- Should I use posts or pages in this scenario?
- Using custom post template
- Adding custom fields to bbpress reply form
- Switch to page template when using post permalink
- How to handle broken links created by permalink/slug changes?
- Permission issue with custom post type – not added to menu – by plugin
- Get Page ID of blog homepage
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Hooking into the post editing screen for an existing page only
- Automatically create a new page daily with last three posts
- User Selectable Delete of Pages
- How to get ID of the page included with get_page()?
- Is it possible to customize the post according to post format in single.php?
- is_page() and is_page_template() not being differentiated
- How to create a “latest news” page showing a list of posts from blog category
- How do you search for a post or page with a certain url on the WordPress admin panel?
- Display the 2nd category name of a custom post type without error if its null?
- Querying another post category to match current post and display in loop
- Display Featured Posts Grid on Static Page (Gazette)
- Having pages after specifying post_type post
- datepicker value in mysql
- Simple Custom Metabox Not Saving
- How to restore deleted post related with deleted users
- Custom Post Type Single Loop Outputting Wrong Post
- Adding if statement into the_content()
- WordPress Post Deletion Issue
- How Can I Always Display A Particular Post First Using WP_Query?
- MySQL: Possible to replace all of wp_posts.post_content(id#) via UPDATE + REPLACE + SELECT?
- Change modified date to current date when title updated automatically
- Creating a redirect option for current page url
- I want to add another search box on posts page in dashboard
- How to put the author of the post in the comments?
- How to add a custom class attribute into code wrapper? [duplicate]
- Redirecting wordpress search query to archive page
- WordPress: Develop multiple posts with different data
- Blocked posts in network tab
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Page with Category Returning 1
- Using WP page password protection as defacto login
- Customizing URL slugs of Custom Post Type and Taxonomy make posts/pages 404
- How to retrieve custom field values and save again as array
- Is there a Standard Format for Clean URLs for Archives of Custom Posts?
- Page not loading content – Body archive – page
- Checking if some condition is matched before inserting post into database
- Using Post ID and Page ID in same function
- How to display a paginated list of posts from one category on a page? [duplicate]
- Redirecting posts in WordPress to a specific page
- How remove “recent comments” title without modifying code? [closed]
- Wrap div-tag around posts in page
- When and how will php code in a user made WordPress page be executed?
- Post data returning null [closed]
- Dynamic Menu Item
- I have a website issue I am trying to resolve