WordPress.org

Ready to get started?Download WordPress

Forums

Full articles in loop (2 posts)

  1. Tibbelit
    Member
    Posted 2 years ago #

    Hi!

    I'm trying to create a newsletter where I want to loop through all articles (for the day) and view them in "full mode". The problem is that I use the "<!-- more -->"-tag when I create the articles, so even if I use "the_content" I just get the "preview" and a "read more" link.

    How do I show the full article length and override the "more"-problem?

    I've searched the forum but couldn't find the solution to this problem...

    Thanks!

    // Tibbelit

  2. Japh
    Member
    Posted 2 years ago #

    Have a look over the Codex page for "the_content" and you'll see the following code snippet that should help you:

    <?php
    global $more;    // Declare global $more (before the loop).
    $more = 1;       // Set (inside the loop) to display all content, including text below more.
    the_content();
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic