I am currently developing a personal theme and I have run into some problems with the wordpress functions..
Here is a part of my code that is giving me trouble:
$posts = get_posts('numberposts=6&offset=0');
foreach($posts as $post) :
<li><a href="<?php the_permalink(); ?>" class="lista"><?php echo substr(get_the_title(), 0, 75); if(strlen(get_the_title()) > 75) echo '...';?></a> --- <?php the_content(); ?></li>
<?php endforeach; ?>
The function the_content() only outputs a
<br /> in the html source. I have tried replacing the_content() with the_excerpt() and this works. I'm not sure why the_content() doesn't work..
I hope someone can explain me why this happens.