get_posts and <!–more–> problem
Hi. I have the following code inserted in my sidebar. the_content works except that the full post is displayed rather than the text to the
Can anyone help me to sort this? Thanks in advance.
$posts = get_posts('numberposts=100&category=2');
foreach($posts as $post) :
setup_postdata( $post ); ?>
<h2><?php the_title(); ?></h2>
<?php the_content('more'); ?>
<?php endforeach; ?>
- The topic ‘get_posts and <!–more–> problem’ is closed to new replies.