<?php
/**
* Template Name: Forum Recent
*/

require('./wp-blog-header.php'); ?>

<?php
    $args = array( 'numberposts' => 5, 'post_status'=>"publish",'post_type'=>"post",'orderby'=>"post_date");
    $postslist = get_posts( $args ); ?>

 <html>
<head>

	<link rel="stylesheet" href="/style.css" />
	
	
</head>
<body>

<?php
    foreach ($postslist as $post) : setup_postdata($post); ?>
             <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
             <div class="blog-image"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank"><?php the_post_thumbnail( 'single-post-thumbnail' ); ?></a></div>
             <div class="blog-text"><i class="fa fa-mail-forward fa-flip-vertical"></i> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" target="_blank"><?php the_title(); ?></a></div>
         <div class="clear"></div>

<?php endforeach; ?>


</body>
</html>