WordPress.org

Ready to get started?Download WordPress

Forums

Creating a "more..." link using Optional Excerpt (6 posts)

  1. videogamerdesigner
    Member
    Posted 7 years ago #

    Hey bloggers,
    After turning my content into excerpts by replacing the_content() with the_excerpt() in my index.php file, I need to know something else.

    Without the use of another plugin, how do I create the "more..."(or whatever phrase I desire) link at the end of my excerpts?

    Thanks for listening.

  2. rudolf45
    Member
    Posted 7 years ago #

    The "more" and the_excerpts are not related to each other, and using the_excerpt tag annihilates the "more".
    Basically, you can not do what you want - without a plugin.

  3. Andrew Ozz
    WordPress Dev
    Posted 7 years ago #

    You mean the link at the end of each excerpt that leads to the full post? Just put
    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> after the_excerpt().

  4. videogamerdesigner
    Member
    Posted 7 years ago #

    You mean the link at the end of each excerpt that leads to the full post? Just put
    "><?php the_title(); ?> after the_excerpt().

    Could not have given any better instructions than that.
    Thanks a bunch.

  5. rochesterfosgate
    Member
    Posted 6 years ago #

    how do make the link something like "read entire post" rather than the title?

  6. moshu
    Member
    Posted 6 years ago #

    <a href="<?php the_permalink(); ?>">whatever-you-want-here</a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags