Edit any template file that includes the Loop and immediately after <?php if (have_posts()) : while (have_posts()) : the_post(); ?>, try adding:
echo '<pre>';
print_r($post);
echo '</pre>';
That will give you the content of the $post object.
http://codex.wordpress.org/Database_Description#Table:_wp_posts
also, you could try and add <?php var_dump($post); ?> after the start of the loop (for instance in single.php) – this will also output a list
Thread Starter
nozero
(@nozero)
so i can put any field name from the table after $post-> and it will return that info?
Yes you can if it is in the loop.
to display it echo it:
<?php echo $post->post_title; ?>
to put it in a variable:
<?php $title = $post->post_title; ?>