I’m having the same or similar problem, although in my case I do have correct syntax. The code:
$events = get_posts( "posts_per_page=2&orderby=date&order=DESC&post_type=post&category_name=" . $category_name);
if ( count( $events ) != 0 )
{
$post = $events[ 0 ];
setup_postdata( $post );
$category_link = get_category_link( get_cat_id( $category_name ) );
the_content( "Continue reading ..." );
?><a href="<?php echo $category_link; ?>" title="Link to <?php echo $category_name; ?>"><em><?php echo $category_caption; ?></em></a><?php
}
When I call the_content() I expected the post content to be cut-off at the more section and have a “Continue reading …” link. However, I get the full post, like everything. Is there something I’m doing wrong?
This code is written in a widget’s widget() function.