WordPress.org

Ready to get started?Download WordPress

Forums

How to make "more" work? (6 posts)

  1. tomasi514
    Member
    Posted 3 years ago #

    I use the "more" tag in my website admin, but it does not appear when I am on my website. I already made this work on other websites but I can't remember how it works! Can you please help me here?
    I tried <?php the_content('Read More...') ?> but still does not work.
    Is there any place I must put this function 'on'?

  2. FishDogFish
    Member
    Posted 3 years ago #

    Did you place your cursor at the point where you want the excerpt to end and click on "More" in the menu?

    You can also place the tag manually at the point you want the Read more.. to appear, by placing this <!--more--> tag there.

  3. tomasi514
    Member
    Posted 3 years ago #

    Yes Fush, thanks.

    What I did is add this code before my <?php the_content('Lire la suite &raquo;'); ?>:

    <?php
    global $more;
    $more = 0;
    ?>

    Do not know precisely why I had to do this on my page (is it always necessary?), but works fine now.
    If someone can help here..

  4. FishDogFish
    Member
    Posted 3 years ago #

    Did you just call me Fush? lol

    The general rule is, if you don't know why you're doing something to the code, don't do it.

  5. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    A more general rule, which overwrites the general rule, is 'if you don't know the code, check the codex.'

    http://codex.wordpress.org/Customizing_the_Read_More#How_to_use_Read_More_in_Pages

  6. FishDogFish
    Member
    Posted 3 years ago #

    Here's a link to the Codex that might help you a little.

Topic Closed

This topic has been closed to new replies.

About this Topic