WordPress.org

Ready to get started?Download WordPress

Forums

more doesn't work on pages? (2 posts)

  1. atomik
    Member
    Posted 4 years ago #

    Hallo,
    I've inserted a pages's content in a template using a very simple loop:
    <?php
    query_posts('page_id=15');
    global $more;
    $more = 0;
    while (have_posts()) : the_post();
    the_content('Read the full post ยป');
    endwhile;
    ?>

    The content shows but the more tag inserted in the editor doesn't affect the output.

    Any idea?

    thx

  2. atomik
    Member
    Posted 4 years ago #

    Solved, thx to
    http://quirm.net/2009/06/16/using-the-more-tag-on-wordpress-pages/

    add global $more; right after the very first php open (if you're on a page template that means I've to put it just before template's name).

    Than add $more = 0; just before the call to the_content()

Topic Closed

This topic has been closed to new replies.

About this Topic