Get Content or any field of Current Page
Friday, 05. 9. 2008 – Category: Wordpress
Any field in POST table
$page = get_page ( $wp_query->get(’page_id’) );
echo $page->post_content;
Getting Page Titles
Friday, 05. 9. 2008 – Category: Wordpress
Page Title
<ul>
<?php
global $post;
$myposts = get_posts(’post_type=page&orderby=menu_order’);
foreach($myposts as $post) :?>
<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>