post excerpt and more tag
-
Hi everyone, I am using a custom page template to show a page as my home page and I’m using a bit of code to show the latest post in a custom sidebar.
How do I get this code to stop where I have defined it to do so with the <!–more–> tag?
At the moment it shows the whole post, but I’d like it to stop after the more tag if possible.
heres what I have now:
<h3>Latest free recipe</h3> <?php $temp_query = $wp_query; ?> <?php query_posts('category_name=recipes&showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p> <?php the_content('click for recipe', FALSE, ''); ?> <?php endwhile; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘post excerpt and more tag’ is closed to new replies.