title: Wordpress shortcode, table of contents not working in php files
body: <p>I have use plugin Shortcodes Ultimate, Table of Contents in Wordpress and everything is showing ok.</p>
  <p>So, in php file I get database post wordpress to show title, content, it also shows the code and not have table of contents.</p>
  <p>Require in file php</p>
  <pre><code>require_once '../wp/wp-includes/post.php';
  require_once '../wp/wp-includes/class-wp-post.php';
  require_once '../wp/wp-includes/post-formats.php';
  require_once '../wp/wp-includes/general-template.php';
  require_once '../wp/wp-includes/template.php';
  require_once '../wp/wp-includes/plugin.php';
  require_once '../wp/wp-includes/shortcodes.php';
  </code></pre>
  <p>I use apply_filters, do_shortcode to show content but it's not working.</p>
  <pre><code>&lt;?=apply_filters('the_content', $posts-&gt;getProp('post_content'));?&gt;
  &lt;?=do_shortcode($posts-&gt;getProp('post_content'));?&gt;
  </code></pre>
  <p><strong>How to display content in page php same format content post wordpress?</strong></p>
  <p><a href="https://i.stack.imgur.com/gUWB4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gUWB4.png" alt="enter image description here" /></a></p>