I use pages for my website, except for the 'news' page, which is a page full of posts- each news item is an individual post.
On my homepage i list three posts in a sidebar- so i need to keep them short!
The problem is i can't get the 'read more' function to work correctly. this is the code i'm using at the moment.
<h2>Latest NEWS</h2> <?php wp_reset_query(); ?> <?php query_posts("post_type=post&posts_per_page=3");?> <?php if (have_posts()): while (have_posts()): the_post() ; ?> <?php the_title();?> <?php global $more;$more = 0;?> <?php the_content(__('more...')); ?> <?php endwhile; endif; ?>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]
the titles display correctly, and the content cuts off at the right place (where i've placed the <!--more--> tag), but instead of just saying 'more...' is says 'Continue reading '[the title of the news post]'.
How do i make it so it cuts off the post and just says 'more...', linking to the rest of the post.