WordPress.org

Ready to get started?Download WordPress

Forums

Read more: displaying an excerpt, but losing the read more link on a page (1 post)

  1. bradyjfrey
    Member
    Posted 7 years ago #

    So I'm pulling a page to two locations - on one page I want the excerpt to show, on another I do not.

    I've added the standard <!--more--> to my page, so when I call for it on the one page, it shows the excerpt accordingly. However, when I call it to the second page (which is a different template), what code do i use to hide the more link tag?

    Simply:
    <?php the_content(''); ?>
    Just shows an empty a tag with the more class

    If I try:
    <?php the_content('','FALSE',''); ?>

    I lose everything above the more tag... and still show the more tag. So is there a syntax I'm missing? All I want is for that one page to show the full content, without a read more link (even if it's empty). Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.