Thread Starter
ariele
(@ariele)
thanks you MichaelH, it works perfectly.
Another little question:
can I make the same thing with a random post and how?
actually I’m using the following code:
<?php
query_posts(array('orderby' => 'rand', 'showposts' => 1));
if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<?php
the_content();
?>
<a href="<?php the_permalink() ?>">continua</a>
</div>
<?php endwhile; endif;?>
But I have the same problem, this loop show me the whole post instead of the part before <!–more–>.