Title: Excerpt Output
Last modified: August 22, 2016

---

# Excerpt Output

 *  [scatmax](https://wordpress.org/support/users/scatmax/)
 * (@scatmax)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/excerpt-output-1/)
 * Hello, I have this code to generate the excerpts. It adds the link “Read More”
   under the text. I need to add the link “Read More” just next to the text. Please
   help
 * function excerpt_read_more_link($output) {
    global $post; return $output . ‘ID).‘”
   > Read More…’; } add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/excerpt-output-1/#post-5369290)
 * I think this is close to what you want:
 *     ```
       function excerpt_read_more_link($output) {
          global $post;
          $link = get_the_permalink($post);
          return $output . ' ' . $post->ID . " <a href='$link' >Read More...</a>";
       }
       add_filter('the_excerpt', 'excerpt_read_more_link');
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Excerpt Output’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/excerpt-output-1/#post-5369290)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
