I'm struggling with displaying a single post page.
I have the following code on the static front page:
<?php
$args = array( 'numberposts' => 5, 'order'=> 'ASC', 'orderby' => 'date' );
$postslist = get_posts( $args );
foreach ($postslist as $post) : setup_postdata($post); ?>
<div class="single_post">
<h3><?php the_date(); ?></h3>
<h3>
<a href="<?php get_permalink();?>">
<?php the_title(); ?>
</a>
</h3>
<?php the_excerpt(); ?>
</div>
<?php endforeach; ?>
That fetches latest posts.
I'm trying to understand how single post page works by copying it from twentytwelve wp theme folder but for some reason it doesn't work. I would really appreciate any help in pointing directions i should follow to make single.php work.
Thank you.
single.php
page for which you've provide little information except that "it doesn't work".