First off: The ID of a post or page is always an integer. “about” is either your about page’s title, slug or both.
Including the following in your “homepage’s” page template or in the sidebar combined with conditional tag(s) will display the about page’s content:
<?php
// query for the about page
$your_query = new WP_Query( 'pagename=about' );
// "loop" through query (even though it's just one page)
while ( $your_query->have_posts() ) : $your_query->the_post();
the_content();
endwhile;
// reset post data (important!)
wp_reset_postdata();
?>
Edit: The above works, IFF your page’s slug is indeed “about”, otherwise adjust accordingly.
Related Posts:
- Why content_arr[‘extended’] removes paragraph tags?
- the_content() Not Grabbing All Content
- Stop WordPress Wrapping Images In A “P” Tag
- Strategy for handling hierarchical pages with empty parent content
- Testing for post title in ‘if/else’ statement returns no content
- Add Word Limit to Posts
- How do I do a page break?
- Preview page/post revisions without overwriting current content
- Adding if statement into the_content()
- why my urdu text is not aligned properly when written in wordpress blog post?
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Get part of a page url
- Stripping tag from elements in post
- Automatically search and replace link in content (pages/posts)?
- How to display breadcrumb on category?
- Direct some posts to only appear on a specific page
- How can I add a page that shows posts from a single category?
- How to show next/prev link, when it’s not active?
- Archieve page, Advertisement Every 3 Posts
- Prevent 404 of Author pages without posts
- Prevent duplicate pages from being added
- Different post views for different category views
- What would causes search to return incorrect results?
- Cannot publish posts, but can create new pages
- Making a new post visible on a specific page
- Changing permalink of WordPress
- definining own teaser text for post
- Can I restore restore content from old Worpress site to a new Worpress site from an archive
- Add text and change style to post programmatically depending on category
- Separate blog and reviews categories
- Creating a redirect option for current page url
- Indenting within a blockquote
- How Do I Redirect WordPress Pages but not posts?
- I want to add another search box on posts page in dashboard
- How do I display main query posts in random order using add_filter
- How to Remove HTML Elements from Post Excerpt?
- How to exclude native lazy loading from first image in post content?
- Permanently deleted posts still exist
- Create a List of Widgets, where each widget holds three attributes
- Edit post & page option does not display on latest wordpress
- Automatic duplicate/copy of post to a related page in WordPress
- Change published date and time using SQL query for page in every 5 hour
- Is there a way to find all posts with Youtube video embedded?
- Custom Fields – How to get the list of a specific active widget each time it rendered
- Is there a way to know when a page has been updated and do some action only once?
- Yoast breadcrumb URL shows category instead of the page
- Please help a newbie with blog page issue?
- My website is showing today’s date instead of published date since db migration to a new wordpress
- Related post not showing table of content
- How to limit wordpress the_excerpt() dynamically
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- Change the size of the featured image for post?
- How to show only homepage in google results instead of privacy, contact pages
- Go back to the exact post page number
- How to get unmodified post content?
- I have inserted a post’s content in homepage.php by the post-id. The font isn’t matching with the theme. How do I change font of this content?
- Google indexing duplicate page content with Page #### in post title and /page-2 in permalink instead of the ones I set
- WordPress empty page! what is wrong with this code?
- how can i take wordpress post as embed?
- Add CSS and JS files of the template post on a WordPress page
- WordPress: Develop multiple posts with different data
- Nestling Posts Under Page & Justify Text
- Can’t find webpage on All Pages or All Post menus
- Added a ACF field to custom page and want the results to show as a column in admin
- Deleted page still shows and is showing posts archive
- Remove status ‘archived’ from the default post and page view
- How to create page with post content in it?
- Show post count in custom taxonomy page
- Parent menu item does not display posts when I add the sub-items
- Blocked posts in network tab
- How to distinguish pages created by woocommerce?
- How to show WP admin edit page within template page/post?
- Put page on Archived statut after end of publication date
- Display all tags even if they are not assigned to a post
- How to add a block to a category page?
- how to put post customized in page
- post and page and custom post type
- How do I customize the post page
- Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately
- Show code only on WooCommerce Pages
- Disable pagination in posts and pages
- Page with Category Returning 1
- Single Sidebar; multiple templates! How?
- Count posts for pagination
- Very weird behaviour after removing WP pages
- Custom permalink for wordpress page / post
- Multiple Pages – Seperate blogs
- Using WP page password protection as defacto login
- How to add post under particular pages? Like website.com/page1/post1
- I lost the link to my posts in my menu bar
- calling pages instead of posts
- Category URL to use same string as Post URL Permalink
- WordPress display page information rather than post
- Post Category link is same with Page link
- WordPress for business site
- if CPT content is empty then
- Posts on Sidebar only
- Is it possible to query a category with specified posts?
- How do I make it so that new posts within a certain category go into a certain page?
- Posts are not showing up on next page.