WordPress.org

Ready to get started?Download WordPress

Forums

Inserting something on "more" separator place in single post (5 posts)

  1. spacer
    Member
    Posted 5 years ago #

    Hello guys. I need some help. I want to insert the same block of text on the <!--more--> place but in post itself (single.php). How can I do that?

  2. Samuel B
    moderator
    Posted 5 years ago #

  3. spacer
    Member
    Posted 5 years ago #

    Yep I saw this article. Although it mostly tell how you could change more link on pages like archive or home page. But I need to insert text in post itself.

  4. MichaelH
    Member
    Posted 5 years ago #

    I believe <!--more--> is not intended to work in single type templates. Please consider using the template tag, the_excerpt().

  5. llamaman
    Member
    Posted 5 years ago #

    I found a solution to this issue here. Simply paste the following code before your "the_content()" function in your template so that it looks something like this:

    <?php global $more; $more = FALSE; ?>
    <?php the_content('Read more &rarr;'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic