one post => Show text => Enter button

<?php
$args = array( ‘numberposts’ => ‘1’ );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo ‘<div class=”well-blue widget-center”><h2>’ . $recent[“post_title”].'</h2>
<p>’. $recent[“post_content”].'</p><a href=”‘. get_permalink($recent[“ID”]) . ‘” class=”btn btn-default”>Komentovat</a></div> ‘;
}
?>

Leave a Reply

Your email address will not be published. Required fields are marked *