Why doesn’t my “the_content(‘Read more…’);” tag work?
-
I got it to work in categories/archives but not on a regular WordPress page that includes the following code. Could you please advise?
<?php query_posts(‘cat=21&showposts=2’); ?>
<h2>David’s Thoughts</h2>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>
<div class=”meta”>
<?php _e(“Filed under:”); ?> <?php the_category(‘,’) ?> —
<?php the_author() ?> @ <?php the_time() ?>
<?php edit_post_link(__(‘Edit This’)); ?>
</div>
<div class=”storycontent”>
<?php the_content(‘Read on…’); ?>
</div>
<div class=”feedback”>
<?php wp_link_pages(); ?>
<?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
</div>
</div>
<?php endwhile; endif; ?>
- The topic ‘Why doesn’t my “the_content(‘Read more…’);” tag work?’ is closed to new replies.