In blog

This wordpress snippet should allow you to show specific page in wordpress theme. In the following example we are show the page if its home page   [code] <?php if(is_front_page()) { ?> <div> <?php $id=6137; $post = get_post($id); $content = apply_filters(‘the_content’, $post->post_content); echo $content; ?> </div> <?php } ?> [/code]   is_front_page() = check if its home page $id = Page. You can go to wordpress admin, click on the page you want the content from. On the admin panel you will see page id. eg: apply_filters(‘the_content’, $post->post_content);  = gets the content from the page echo $content;  = shows the content   If you want the content to show on all page. Use this snippet [code] <div> <?php $id=6137; $post = get_post($id); $content = apply_filters(‘the_content’, $post->post_content); echo $content; ?> </div> [/code] Follow us on Facebook / Twitter / Google+ and myself for more tips

Recommended Posts