Adsense

wordpress recentpost


<?php

// The Query
query_posts( 'posts_per_page=2' );

// The Loop
$abc=0;
while ( have_posts() ) : the_post();
?>

<div class="entry-content">
<h2 class="entry-title">
<a href="<?php echo get_permalink(); ?>">
<?php echo the_title(); ?>
</a>
</h2>
<?php echo the_content("Les mer");?>
<?php if($abc>0){ $text1='display:none'; } else { $text1=''; } ?>
<hr style="background:black;<?php echo $text1; ?>">
</div>
<?php
++$abc;
endwhile;

// Reset Query
wp_reset_query();

?>

newest questions on wordpress