get_header(); get_template_part('main-nav'); the_post(); $the_id = $post->ID; ?> $prev_post = get_previous_post(); if (!empty( $prev_post )): ?> echo get_the_title($prev_post->ID ); ?>older endif; ?> $next_post = get_next_post(); if (!empty( $next_post )): ?> echo get_the_title($next_post->ID ); ?>newer endif; ?> the_content(); ?> the_time('F j, Y') ?> Share comments_number( '0', '1', '% ' ); ?> comments the_tags(); ?> show comments Comments if ( post_password_required() ) return; ?> if ( !is_user_logged_in() ) {?> } ?> //------------------------------------------------- // OTHER POSTS //------------------------------------------------- ?> $posts = get_posts( array( 'post_type' => 'post', 'posts_per_page' => '101', )); if($posts){ foreach($posts as $post){ if ($post->ID != $the_id){ ?> " width="100%"/> the_title(); ?> the_time('F j, Y') ?> } //end if } // end foreach } // end if ?> get_footer(); ?>
echo get_the_title($prev_post->ID ); ?>
older
echo get_the_title($next_post->ID ); ?>
newer
the_time('F j, Y') ?>