wp – Euclides http://ezisetup.com/designs/euclides Just another EziSite Sun, 14 Dec 2014 06:09:45 +0000 en-US hourly 1 EziSites Content From Separate Page Without ID http://ezisetup.com/designs/euclides/wordpress-content-from-separate-page-without-id/ http://ezisetup.com/designs/euclides/wordpress-content-from-separate-page-without-id/#comments Fri, 21 Jan 2011 13:53:58 +0000 http://www.cssigniter.com/preview/euclides/?p=43 Nulla fringilla, orci ac euismod semper, magna diam porttitor mauris, quis sollicitudin sapien justo in libero. Vestibulum mollis mauris enim. Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam.Nulla fringilla, orci ac euismod semper, magna diam porttitor mauris, quis sollicitudin sapien justo in libero. Vestibulum mollis mauris enim. Morbi euismod magna ac lorem rutrum elementum. Donec viverra auctor lobortis. Pellentesque eu est a nulla placerat dignissim. Morbi a enim in magna semper bibendum. Etiam scelerisque, nunc ac egestas consequat, odio nibh euismod nulla, eget auctor orci nibh vel nisi. Aliquam.

[php]

//PERFORMS MYSQL QUERY TO GET THE POST ID
//note: ‘about’ is the name of the page, you can use any named, ex: ‘web services’
$about_page_id = $wpdb->get_var(“SELECT ID FROM $wpdb->posts WHERE post_name = ‘about'”);

$post_id = get_post($about_id);
$content = $post_id->post_content;

//applies wordpress filter (includes

tags)
$content = apply_filters(‘the_content’, $content);

$content = str_replace(‘]]>’, ‘]]>’, $content);

echo $content;
?>
[/php]

]]>
http://ezisetup.com/designs/euclides/wordpress-content-from-separate-page-without-id/feed/ 6