Yasser Shaikh
Menu
  • Home
  • Blog
  • Archives
  • About Me
  • Contact Me
Web Developer & Designer, Mumbai
Home » page
How to find an Id of page in wordpress

Get content from a particular page in WordPress

January 21, 2012 · by Yasser · in Wordpress

Code with explanation : {code type=php} <?php $page_id = 25;//25 should be replaced with a specific Page’s id from your site $page_data = get_page( $page_id ); $content = apply_filters(‘the_content’, $page_data->post_content); $title = $page_data->post_title; //Get title echo $content; //Get Content ?> {/code}

Search Blog

About Yasser


Currently working at Media.NET in Mumbai as a Web Developer mainly focusing on ASP.NET MVC development.

Follow me on twitter at @yrshaikh
or say hi at mail@yassershaikh.com

Read More...

I recommend …

  • Top Wordpress Plugins List
  • Recommended Tech Blogs
  • Recommended Tech Podcasts
  • Recommended Books for Devs
  • Style your Visual Studio

Archives

  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012

Feedjit

  • Feedjit Live Traffic

Blog Traffic

Pages

Pages|Hits |Unique

  • Last 24 hours: 913
  • Last 7 days: 4,892
  • Last 30 days: 18,785
  • Online now: 4

aaaa

TwitterFacebookGoogle+LinkedInYouTubePinterestRSS
 

Feedjit

Live Feedjit

Total Posts

Total Post : 216

Copyright © 2013 Yasser Shaikh

Powered by WordPress and Origin