Support » Themes and Templates » Meta data on a wordpress post

  • I am fixing a wordpress site for a friend, I need to put all the meta data to the post (It is just showing the title and content, and then the back and next buttons above the content block?) as well as the comments block for that post.

    Here is the code:

    if (is_active_sidebar('blog')) get_sidebar('blog');
    if (have_posts()) {
    	while (have_posts()) : the_post();
    $post = get_post($id); //assuming $id has been initialized
    	if (get_post_type() !== 'post') {
    			get_template_part('content', get_post_type() );
    		} else
    			get_template_part('content', get_post_format());		
    } else { ?>
    	<div <?php post_class(); ?>>
    		<div class="post-head"></div>
    		<div class="post">
    			<p><?php _e('Sorry, post is not found.','easel'); ?></p>
    			<div class="clear"></div>
    		<div class="post-foot"></div>

    Any ideas on how to do this?

    Thanks in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Meta data on a wordpress post’ is closed to new replies.