Use get_the_title()
:
$page = get_page_by_title( 'About' );
$title = get_the_title( $page );
You could also use $page->post_title
, but get_the_title()
will let plugins access the title, which sometimes quite useful.
Related Posts:
- Change Genesis Tag from Page Template [closed]
- Removing title tags from each page
- Cannot update WordPress General Settings Site Title and Tagline
- Limitations when modifying wp_title with a filter
- Automated Footer information
- Theme support title tag – how to replace the default WP separator (with a filter)?
- When trying to set title, not sure how to edit it for different pages
- double page title [duplicate]
- How can I change the title of the Home link in the navigation bar?
- Problem dynamically generating an all purpose title tag
- TItle In Latest Post is not using H1 Tag [closed]
- Solutions for generating dynamic javascript / CSS
- Custom single template for a specific category
- Get the first image from post content (eg.: hotlinked images)
- Getting failure when using filemtime() with wp_enqueue_style
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- How bad is it if I write AJAX functions using wp-load.php?
- How to know if a child theme is being used?
- Nested comments ignored for max per page in wordpress
- wp_nav_menu sort order?
- get_option function
- Twenty Eleven home page show only excerpt
- Snippet: Use classes instead of inline styles for text alignment
- Make a custom theme translate-ready
- Grab the first paragraph of each post
- Wrapper class: How to get rid of call_user_func_array() warning?
- Set Expiration Date of a Post from the Frontend with wp_insert_post
- How to Handle CSS for Multiple Header header.php Files?
- Resources for a complete beginner to learn to work professionally with WordPress [closed]
- “Cheatin’ uh?” error message on multple theme directories
- How to tell if the user is an admin?
- Adding WordPress colorpicker in widget settings
- What is wrong with this code I have to make a blockquote shortcode
- How to attach different React Components to different Dom Roots using the new WP wordpress/scripts webpack/babel
- Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?
- Remove Cookies From WordPress Core
- Is it necessary to prefix every css class in a theme framework?
- Warning/Error in Admin Panel while developing theme
- Add theme templates for child categories into the template hierarchy
- Where can I access my custom page template?
- How to display posts in hyperlink with nested slugs?
- Check if tag, category or author on archive.php
- Editing Footer Information
- Developing WordPress Theme using CSS framework like Bootstrap
- How to make Isotope and WordPress work together?
- WordPress empty Nav Menu error
- How do I Add images uploaded in the post to a default custom field
- How to add a button which saves the post then executes a function
- Disable dashboard drag&drop
- nothing happen in search form
- Catagories to the list of the titles in that catagory to the content of the post [closed]
- How to customize output of plugin
- Override customizer values on a per-menu base
- Theme Inspector “X-Ray”
- How to place HTML tags in content from the_content()?
- Can I get the ID of an inserted / linked image?
- WordPress Theme Creation [closed]
- Custom theme, contact form 7 & fast secure form doesn’t work
- do_shortcode() in twentyeleven theme
- Cherry framework – Overriding function in template-general.php
- pagination for a custom loop with multiple post types
- Making a child theme for “Airi”
- How to get category lists by name or slug
- Difference between “comment_form_default_fields” AND “comment_form_fields”
- using custom page
- Extending custom shortcode to also be called directly from theme PHP pages
- How to track a users last visited page?
- Preview returns 404 in theme [closed]
- Same comments on all posts
- How to get DB options format without saving? [closed]
- How to add custom page elements to the WYSIWYG editor?
- Theme development: menu links a tabbed page with page jumps
- Disable redirect canonical
- Related Post Category Filter
- how to add a badge on product based on filter?
- Show only pages you are author of
- how to unlocalize theme/plugin?
- White screen of death on index.php page 3 and above?
- Best way to declare product variables in woocommerce theme development?
- Adding a button to wp/aution plugin
- WordPress and Semantic UI
- Displaying front side empty with one file attached problem
- Get_header raises an 500 internal server error
- Can you edit a theme in a text editor?
- Where i must put hooks in overridable functions?
- my ajax wont sent the data, please correct my code
- How to fix a conflict cause by my theme with Woocommerce and/or Gravity Forms?
- How to hook into wordpress upgrade procedure for a custom theme
- Second page of archive is empty
- Missing hashtag with theme customizer header color
- Fail to install theme on development copy of WordPress on Webmatrix
- Category page with posts from 2 different childcategories
- Tags interfering with next_post_link();
- Standard Way To Do Custom Work Within A Page?
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- Recent posts with comment count in “Sidebar” template [closed]
- HTML to WORDPRESS [closed]
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)