title: Why isn't apply_filter('the_content') outputting anything?
body: <p>I've tried so many combinations of php to get wordpress to output $post->post_content as formatted text (as opposed to the raw formatting that <code>echo $post-&gt;post_content</code> gives me. This combination seems to be the most promising, but it isn't outputting anything. Any ideas?</p>
  
  <p>(it's this line: <code>&lt;?php $content = apply_filters('the_content', $s-&gt;post_content); ?&gt;</code>)</p>
  
  <pre><code>&lt;?php query_posts('orderby=menu_order&amp;order=asc&amp;posts_per_page=-1&amp;post_type=page&amp;post_parent='.$post-&gt;ID); if(have_posts()) { while(have_posts()) { the_post(); ?&gt;
      &lt;div class="page"&gt;
          &lt;?php
              global $wpdb;
              $subs = $wpdb-&gt;get_results("SELECT * FROM $wpdb-&gt;posts WHERE post_parent='$post-&gt;ID' AND post_type='page' AND post_status='publish'");
              if($subs) {
          ?&gt;
          &lt;div class="navi"&gt;&lt;/div&gt;
          &lt;a class="naviNext"&gt;&lt;img src="&lt;?php bloginfo('template_url'); ?&gt;/images/navi-next.png" alt="" /&gt;&lt;/a&gt;
          &lt;div class="scrollable"&gt;
              &lt;div class="items"&gt;
                  &lt;?php foreach($subs as $s) { ?&gt;
                  &lt;div class="item"&gt;
                      &lt;h2&gt;&lt;?php echo $s-&gt;post_title; ?&gt;&lt;/h2&gt;
                      &lt;?php $content = apply_filters('the_content', $s-&gt;post_content); echo $content; ?&gt;
                  &lt;/div&gt;
                  &lt;?php } ?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php } else { the_content(); } ?&gt;
      &lt;/div&gt;
      &lt;?php } } wp_reset_query(); ?&gt;
  </code></pre>