WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] the_content on blog, the_excerpt on another site, with "Read More" link (2 posts)

  1. vkaryl
    Member
    Posted 7 years ago #

    I've a client for whom I've set his blog to display the latest five posts' excerpts on another of his sites. This is accomplished by use of a call to wp-blog-header.php at the top of the intended display page, and The Loop where the excerpts need to display on the other site.

    What is NOT working is when I try to make the [...] at the end of the excerpt display something like [Read More...] and link to the blog page with the full post.

    Anyone know if this can be done? I just spent the last two hours reading through everything in the Codex, and about 3 years of posts on this forum, none of which seems to be what I'm looking for.

  2. vkaryl
    Member
    Posted 7 years ago #

    Nev'mind, I figured it out.

    Here's what you use:

    <?php the_excerpt(); ?><a href="<?php the_permalink() ?>" rel="bookmark">[Read more...]</a>

    You can style it with css to look however you like.

Topic Closed

This topic has been closed to new replies.

About this Topic