title: Output the first paragraph in a Wordpress post
body: <p>I want to put just the first paragraph of my posts on my index.php</p>
  
  <p>in my functions.php I have</p>
  
  <pre><code>&lt;?php
  
  {
  global $post;
  
  $output = get_the_content();
  
  $wanted_number_of_paragraph = 1;
  
  $tmp = explode ('&lt;/p&gt;', $output);
  for ($i = 0; $i &lt; $wanted_number_of_paragraph; ++$i) {
  if (isset($tmp[$i]) &amp;&amp; $tmp[$i] != '') {
     $tmp_to_add[$i] = $tmp[$i];
  }
  }
  $output = implode('&lt;/p&gt;', $tmp_to_add) . '&lt;/p&gt;';
  
  echo $output;
  
  }
  ?&gt;
  </code></pre>
  
  <p>then in my index.php</p>
  
  <pre><code>&lt;?php wpden_excerpt(); ?&gt;
  </code></pre>
  
  <p>However it posts the entire post (including pictures) and not just the first paragraph.</p>