Support » Fixing WordPress » More tag not working in custom page template

  • Hi, All
    Anyone out there know why when I add the More tag on this custom page that I made to display one particular category (Articles) it doesn’t work?
    When I changed it to the_excerpt it showed just an excerpt, but no go with the More tag.
    Thanks in advance.

    <?php
    /*
    Template Name: Articles
    */
    ?>
    
    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id="content">
    
    <?php query_posts('category_name=Articles&showposts=10'); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    <?php the_content('Continue Reading...'); ?>
    <div class="post-details"> <h3>Posted in <?php the_category(' and ',''); ?> on <?php the_time('F jS, Y') ?> at <?php the_time() ?> by <?php the_author_posts_link(); ?>. </p><a href="<?php the_permalink() ?>#comments"><?php comments_number('Add a comment','1 comment','% comments'); ?></a></h3>
    </div>
    </div>
    <?php comments_template(); ?><?php endwhile; ?><?php else : ?><div class="post" id="post-<?php the_ID(); ?>">
    <h2>Nothing to see here</h2>
    <p>You seemed to have found a mislinked file, page, or search query with zero results. If you feel that you've reached this page in error, double check the URL and or search string and try again.</p>
    <p>Alternatively, a more personalized method of tracking down and searching for content can be found <a href="#bottom_box">below</a>.</p>
    </div>
    <?php endif; ?>
    
    <div class="nextprevious">
    <div class="left"><?php next_posts_link('&laquo; Older Entries') ?></div>
    <div class="right"><?php previous_posts_link('Recent Entries &raquo;') ?></div>
    </div>
    <div class="clear"></div>
    </div>
    <?php get_footer(); ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘More tag not working in custom page template’ is closed to new replies.