two problems with more quicktag
-
This is driving me nuts so any help would be greatly appreciated.
This is what I am trying to do (on one page):
Display an excerpt of the “about” page with a more link to the page, then display excerpts for the most recent 3 posts (excluding one category) with more links to the full posts. All of the posts and the about page have the more quicktag (<!--more-->
to mark where I want them separated.
The problems:
1. No matter what I try I can’t display an excerpt for the about page except if I use the_excerpt() in which case all the html is stripped (unacceptable).
2. If I include the 2 loops, one to get the about excerpt and one to get the recent posts (see below) the more links for the recent posts don’t appear. The more links for the recent post do appear when the about loop is not included.Here is the code that I have so far:
<div id="daily_op">
<h2 id="daily_op_head" class="text_replace">a daily operation</h2>
<?php query_posts("page_id=2"); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content('more'); ?>
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div> <!-- end #daily_op -->
<div id="features">
<h3 id="features_head" class="text_replace">latest features</h3>
<?php query_posts("cat=-5&showposts=3"); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="feature" id="feat<?php the_ID(); ?>">
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
<div class="entry"><?php the_content('more'); ?></div>
</div><!-- end .feature-->
<?php endwhile; ?>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div><!-- end #features-->
- The topic ‘two problems with more quicktag’ is closed to new replies.