Support » Fixing WordPress » <!–more–> Tag failure in main WP page.

  • I’ve setup WordPress to function as the CMS for a web comic being developed by a friend and I. Everything has gone very smoothly, and I am happy with the functionality (ComicPress rocks!). But in my modification of the theme I have found that at some point the <!--more--> tag stopped working. I have searched over the forums and found that it appears to have something to do with calling multiple loops on a blog’s primary page via the query_posts(); function.

    I’ve set things up so that the primary page runs four loops instead of just the usual one. All I did was divide the page as needed with tables and CSS in the comicpress template, then added a query_posts('cat=#'); where # is equal to the category number of the content I want to display. For example, the site news is posted under a catigory called “News” which is catigory 6, so the loop is as follows:

    	while (have_posts()):
          <div class="post" id="post-<?php the_ID(); ?>">
            <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
            <small><?php the_time('F jS, Y') ?></small>
            <div class="entry"><?php the_content('Read the rest of this entry &raquo;'); ?></div>
            <p class="postmetadata">
    			&nbsp;Category: <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('Comments »', '1 Comment »', '% Comments »'); ?></p>
        <?php //endforeach; ?>
    <?php endwhile; ?>
    <?php posts_nav_link() ?>

    However, when the <!–more–> tag is used in the post, the entire post is still displayed.

    Does anyone have any ideas?

    P.S. This is not on WP “page” it is the main index.php of the site, the blogs default category is the comic, which is also identified with query_posts() and displays fine, but ignores the use of the <!–more–> tag in the post that accompanies each comic.

  • The topic ‘<!–more–> Tag failure in main WP page.’ is closed to new replies.