Title: get_excerpt() returns empty string
Last modified: August 21, 2016

---

# get_excerpt() returns empty string

 *  [ecsancho](https://wordpress.org/support/users/ecsancho/)
 * (@ecsancho)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_excerpt-returns-empty-string/)
 * Greetings
 * I’m grabbing a post outside the loop by using $p=get_post(id). However wen trying
   to grab excerpt directly from post by using $p->post_excerpt or get_excerpt(id)
   and both returning empty. What gives? Em I missing something? Thanks in advance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [ecsancho](https://wordpress.org/support/users/ecsancho/)
 * (@ecsancho)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/get_excerpt-returns-empty-string/#post-4348879)
 * Solved it by using setup_postdata( $p ); echo get_the_excerpt();

Viewing 1 replies (of 1 total)

The topic ‘get_excerpt() returns empty string’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ecsancho](https://wordpress.org/support/users/ecsancho/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/get_excerpt-returns-empty-string/#post-4348879)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
