the_content problem
-
Hello,
I use the WP Admin panel to letting display the 6 latest blog entries at my “home”page. Now I´ve severeal problems displaying the latest 8 entries on a subpage using the following code:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php
$posts = get_posts('numberposts=8');
foreach ($posts as $post) :
?>
<h4><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h4>
<div class="post-main">
<?php <strong>the_content</strong>('Read �'); ?>
</div>
<p class="custom"><?php the_time('d. F Y ') ?> filed under <?php the_category(', ') ?> <?php edit_post_link('Edit','',''); ?>
<?php
endforeach;
?>
<?php endwhile; ?>
<?php else : ?>
<h4>Not Found</h4>
<?php endif; ?>
Everything´s fine if I replace the_content with the_excerpt but that´s not what´s intended. Please feel free to help me out 🙂
The topic ‘the_content problem’ is closed to new replies.