My code :
<div class="date"><?php the_time('d') ?> <?php the_time('M') ?></div>
<h2 class="titolo" style="min-height:0;"><?php the_title(); ?></h2>
<div class="descrizione"><?php the_content(); ?></div>
time and title are correct. But the content is empty?
In fact, trying :
$pr=get_posts();
print_r($pr);
I see both title and description inside the array. Where am I wrong?
try this
you can use $content = get_the_contnet(); or $content = $post->post_content;
then treat $content as a normal php variable.