WordPress.org

Support

Support » How-To and Troubleshooting » <!–more–> not working

<!–more–> not working

  • I can’t seem to get the <!–more–> special tag to work in my postings (WordPress 2.1). I have a page which I’m using as my home page, and then I’m using query_posts() to get all of the entries for a given category. In my loop, I have:

    <?php the_content(‘<p>Continue reading »</p>’); ?>

    The postings in this category have <!–more–> tags, but it’s still displaying the entire posting. If I pass TRUE as the second argument to the_content(), it hides everything before the <!–more–> but then displays everything after. Is this a bug, or am I doing something wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • have a page
    That’s the keyword, if your meant Page.
    the more tag doesn’t work on Pages – Pages are not meant to display “multipost listings”.

    I’ve just noticed this works on an archive page but not on a static page. This page says something about <!–more–> only working on “non-single/non-permalink post pages”, but neglects to mention why or what to do if you want this on a static page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘<!–more–> not working’ is closed to new replies.
Skip to toolbar