<?php
// would echo post 7's content up until the <!--more--> tag
$post_7 = get_post(7);
$excerpt = $post_7->post_excerpt;
echo $excerpt;
// would get post 12's entire content after which you
// can manipulate it with your own trimming preferences
$post_12 = get_post(12);
$trim_me = $post_12->post_content;
my_trim_function( $trim_me );
?>
Related Posts:
- Add infinite scroll to content splitted post
- How can I keep the content of my pages version controlled?
- What methods to use to create small, editable pieces of text for static pages?
- Editing Complex Pages in Visual Mode
- Multiple areas of dynamic content in a page
- Static files or dynamic WP pages for “static content”?
- The entire content of my WordPress page has disappeared
- What is the proper way to get contents of a page?
- Get the Page Content,without generating HTML
- Page displays content from different query?
- Having wordpress page accesss issue under sub-directory
- How to make my category archive behave like a page
- The concept of non-blog content
- If I use a static page-slug.php for a page, is the database still queried?
- How To Render Shortcode In AJAX Response?
- append one page content into another
- Two different pages that share the same content?
- upgrade has caused page content to disappear
- Add the same content to multiple pages
- Cannot pull WYSIWYG content
- Editing pages from dashboard
- What’s the best way to manage sections on a page?
- include exception inside theme for empty widget area
- How to get sort content by page id?
- Add text to the bottom of particular pages
- Retrieve page content and pass to PHP?
- How to get page title with the page ID?
- Is there a way to change the default page template selection?
- Can I have two child pages of different parents with the same name?
- Replace Dashes Before Title in Page List
- Proper method to restrict non logged users into certain pages
- How to get the specific Page’s current ID and use it in a get_page function?
- How does wordpress calculate the page depth?
- foreach error on false boolean from get_terms
- How to get a feed for post type ‘page’?
- Show TwentyEleven header image only on home page
- Placing google maps into a wordpress page using the wordpress page editor
- Export only pages and posts with mysql dump
- Backend option to include a javascript file on specific pages?
- Template for child pages / subpages
- Display content of page template (get_page)
- Visiting Webpage ONLY after another page was visited. Possible?
- How do I pass data from page content to the underlying PHP template
- How to open a phpBB forum in the same website as sub-page [closed]
- Display page contain in index.php file
- How to redirect login and register pages
- How to setcookie if is_page(‘page’) ? should I use add_action(‘init’) or there is another action?
- Why do pages in WordPress have a hierarchy but menu’s also have a hierarchy?
- Text Editor Tags
- Column Images Showing Gaps
- Control Content On Non-Blog Pages
- Custom page template with entirely different design. Is it possible in?
- Get the ID of the direct parent page
- External stylesheet per page
- How to control who can view certain pages in BuddyPress? [closed]
- how to avoid the character conversion of WordPress pages?
- Query specific Pages
- Phantom page can’t get rid of/can’t get at to change
- ‘x’ Converted to html code in example: 5×10
- How can I send an email when someone uses the HTML download Attribute?
- multiple post into single page
- Later blog post pages give 404 error
- Different css file not working for the page template I created
- How to change the order of the Front Page so it doesn’t appear first
- 404.php only works if I’m logged in. Everybody else redirects to wp-login.php – why?
- redirect index.html inside folder to wordpress page of same name
- Show content if page is a grandchild of top level page
- How to add page content into another page
- Does Feedburner send notifications about WordPress pages?
- Using index.php as page template
- Ordering Pages and Increasing Navigation
- What’s the section of code (or loop) which retrieves the Page title and description?
- How to backup just pages from my site, but not posts with other post_type values
- On the list of Pages, clicking to Edit a particular page redirects to the list of trash
- Template field missing in page attributes
- How to delete the scrollbar in my pages?
- How to make a page as default page for a theme without a plugin?
- How to change default home link title?
- Not allow add New Page for role ‘editor’
- Pulling images from the media folder category to display inside a page
- Display grandchild page content on parent page
- How do you assign custom template for Posts page (under Front page displays setting)
- Category Page Custom Layout [closed]
- How to copy specific page content and create child page?
- How to output different content of page on different places in my template
- WordPress slow pages/post, hangs and white text
- Adding CSS styles to Admin Area PAGES only (not POSTS or CPT)
- 1st Level Page with No Children
- Previewing Draft shows white page, publishing works fine?
- Changing title bar in browser window of theme “Encounters Lite”
- Custom Filter using meta_value in wordpress admin list not working
- Directory location of new page
- Grabbing the_content from “about us”
- making a pseudo-static page
- Page specific values in widgets
- Woocommerce – Making product pages child of shop
- Website fully loads then immediately crashes in Internet Explorer [closed]
- How to display a page?
- appearance of new page
- How to read a page’s “Shortcodes” from the Template File?