title: wordpress get excerpt by id
body: <p>I'm using the <a href="http://wptheming.com/options-framework-plugin/" rel="noreferrer">options framework</a></p>
  
  <p>and i can't work out why this doesnt work</p>
  
  <pre><code>$x = of_get_option('post_number');
  $content_post = get_post($x);
  echo $content_post-&gt;post_excerpt;
  </code></pre>
  
  <p>its very odd because</p>
  
  <pre><code>echo of_get_option('post_number');
  </code></pre>
  
  <p>works perfectly and outputs a number</p>
  
  <p>and according to <a href="http://codex.wordpress.org/Function_Reference/get_post" rel="noreferrer">get_post</a> my code should work
  yet the echo produces nothing, not even an error message</p>
  
  <p>so i must be handeling get_post() incorrectly somehow, any clues?</p>
  
  <hr>
  
  <p>EDIT</p>
  
  <p>var dump <a href="http://pastebin.com/ZEgQ5WPn" rel="noreferrer">http://pastebin.com/ZEgQ5WPn</a>
  reveals that post_content is full but post_excerpt is empty</p>
  
  <p>how do i regenerate the excerpt?</p>
  
  <hr>
  
  <p>EDIT [resolved]</p>
  
  <p>i decided to manualy overwrite the excerpt but my option was missing, then i found <a href="http://wordpress.org/support/topic/just-upgraded-to-31-and-post-excerpt-field-in-admin-disappeared#post-2342181" rel="noreferrer">this</a></p>
  
  <p>and used</p>
  
  <pre><code>add_post_type_support( 'page', 'excerpt' );
  </code></pre>
  
  <p>to manualy write the excerpt</p>