title: Jquery show/hide confusion
body: <p>I have implemented this many times before but I cannot figure out why it is not working for me this time.  If there is not content being pulled then I want the div to hide.  </p>
  
  <p>FRONT-END</p>
  
  <pre><code> &lt;div class="title"&gt;
      &lt;h2&gt;PRESS&lt;/h2&gt;
      &lt;?php echo $info['man_press']; ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>SCRIPT</p>
  
  <pre><code>$(document).ready(function() {
  $(".title").each(function() {
    if ($(this).find("p").length &gt; 0) {
       $(this).show();
     }else{
       $(this).hide();
     }
   });
  });
  </code></pre>