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
<!--more-->
tag.Can anyone help me to sort this? Thanks in advance.
<?php
$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; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘get_posts and <!–more–> problem’ is closed to new replies.