the codex has exacly what you need: get_page_by_title()
Example
$page = get_page_by_title( 'About' );
$the_excerpt = $page->post_excerpt;
or
$page = get_page_by_path( 'parent-page/sub-page' );
Related Posts:
- get_pages — parent vs child_of?
- Trying to return list of child pages for a template
- Is it possible to add a child post into the parent page?
- How To Create A Paginated List Of All Categories On My Site?
- How to add a .php file to WordPress
- WordPress page edit does not save selected template
- Set page template automatically based on parent
- Loading page content into a variable in template
- How to display code if it is not certain pages?
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- How to pass a numeric id to a page template?
- How can I dynamically load another page template to provide an alternate layout of the posts?
- Is it possible for a plugin to register a page template file?
- get url page template
- How to Set a Custom Template for Blog Posts
- How do I create multiple page while active a theme
- How can I have a static title on my blog page?
- Programmatically set page template based on page ID
- Use is_category(), is_tag(), … in functions.php
- Why am I getting syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in this template? [closed]
- How to handle a missing page.php?
- Customize edit.php Pages listing in dashboard to show only pages with a particular template applied?
- Programatically switch page template?
- remove page template from dropdown?
- Export csv and force download in template page
- WPML in custom page templates
- Why (and how?) is get_header() erasing all my stuff?
- How to pass outside function to WP_REST_Request
- page.php not displaying content
- Create a loop that gets pages with their template
- create a template page for a post
- Page Automatically Generated from Theme?
- How to make text show up – new page template
- How to hide all child pages with post_query?
- using the loop with a custom table
- How to create a custom page(not a template) in a theme
- Content pulled from page template instead of editor
- Populate editor with some content of a page with a page template
- how to setup custom content structures
- Custom page template for multiple pages
- how to remove all body classes in wordpress
- Prevent menu from loading in a page template [duplicate]
- What is wrong with my page.php?
- Custom page with queries returns 404
- Single page Template for pages that begin with ‘confirmation-‘
- What content to use for inserting images
- the_content of template page
- WordPress theme: Add page content to the bottom of the Contact form
- WordPress 3.2 – removed ability to select a page template in the page attributes when adding a new page?
- Can i forget about the post loop inside the page template?
- get_avatar() as backround image
- get_the_excerpt() inside WP_Query – link URL Incorrect
- Use same page-mypage.php template for several pages
- How to create custom search page
- How to make Dynamic Page Template based on Post ID’s
- How to create different template designs for different pages in WordPress [closed]
- Template Tag Does Not Work in Page Template
- Contact template doesnt appear in page template options
- Get_template_part seems to be ignoring my template
- require_once not working
- Custom form not showing in correct place on page
- Displaying posts on homepage – Template Page
- Page templates in subdirectories and auto generator
- Use page template for custom $_GET content
- Setting a new default template for the creation of a page
- Custom theme template files
- Proper way to create custom static page
- How to display all child/sub pages from all parent pages?
- Subpage is redirecting to spam site
- How to integrate custom HTML template in a premium wordpress theme?
- How to load page template according to the Searched Page
- Set page template automatically according to parent slug
- Displaying posts inside table having issues
- Static page won’t identify template
- WordPress blog posts template bug [closed]
- How do I customize the post page
- Restrict Access to Logged-In Users Page Template
- Using external DB within wordpress
- Page template is missing fields or is invalid when I updating the template
- Add additional templates to the templates drop down on add page menu [duplicate]
- Content template when adding a new page
- How to display time when page is created and edited
- Single page theme: Can I render other pages with their respective themes within another page?
- how bbPress and buddypress add their own page templates to the page template drop down on the page editing screen
- change the Theme dynamically
- How can I set full width page layout in a default post page?
- Create a new page for each form selection
- Using custom post types within a section of a template
- E-Commerce Products Page Sidebar Formatting
- Lead Generation with Cookies in WordPress
- trying to add custom landing page to Twenty Eleven- can’t get rid of Twenty Eleven header/container? [duplicate]
- Fetching Image from other post/page with custom type
- wordpress header leaks into body in a specific template
- Display child page on parent
- Show page name in browser
- Animation as shown in the link
- Create Page with Template File from Plugin Folder
- I’m building a WordPress theme and noticed that the 404 page template runs along with the corresponding templates for each page. Any idea why?
- Generating Multiple Divi Pages from Database