title: Integrate Wordpress Post with Cakephp3
body: <p>I am working on cakephp 3.x and want to display blogs section on my site. I want to use WordPress feature in my site.</p>
  
  <p>I have installed WordPress 4 on my local server, then I have imported tables of WordPress into cake's database and put the WordPress folder into webroot folder of Cakephp.</p>
  
  <p>In app controller's initialize() function I have put this code as follows:</p>
  
  <pre><code>    global $wpdb;
      define('WP_USE_THEMES', false);
      require($_SERVER['DOCUMENT_ROOT']."/webroot/blog/wp-config.php");
  </code></pre>
  
  <p>So that I can embed WordPress into cakephp (seems this is not helpful).</p>
  
  <p>I have tried this tutorial but not success on this <a href="https://sarasotawebpros.com/is-it-possible-to-integrate-cakephp-and-wordpress-woocommerce/" rel="noreferrer">Tutorial Link</a>.</p>
  
  <p>I know in this tutorial Wordpress folder is placed out of webroot folder and I have tried that too.</p>
  
  <p>When I run the site using <strong>http:example.com/blog</strong></p>
  
  <p>It is asking for blog controller and I understand this is because of as blog controller is not present in <strong>src/controller</strong> folder.</p>
  
  <p>I have tried .htaccess code as per suggested in tutorial but no success on that.
  Can anyone help me out from this problem? Please let me know the required steps for integration.</p>