I show the latest 4 blogpost on a other page of my website. This all worked fine, until I got a image before my 'readmore' line.
I don't want to show a image over here, and ofcourse not the code. Now at my website it says:
[caption id="attachment_324" align="alignnone" width="480" caption="Google Siteprestaties grafiek"][/caption] Google is..
Here is my code at the website page:
<?php query_posts('showposts=4'); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="blogleft">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Link naar <?php the_title(); ?>" class="title"><?php the_title(); ?></a><br />
<?php $content = get_the_content();
$content = strip_tags($content);
echo substr($content, 0, 220);
?>…
<br />
<a href="<?php the_permalink() ?>" rel="bookmark" title="Link naar <?php the_title_attribute(); ?>">Read more</a>
</div>
<?php endwhile;?>