title: Loading Wordpress functions inside Zend Framework
body: <p>Hio,</p>
  
  <p>So I have a website which uses the Zend Framework as MVC (www.site.com), and a separate blog set up in wordpress (www.site.com/blog) on the same server, but <strong>I want to be able to use Wordpress functions on various pages to pull posts from wordpress.</strong></p>
  
  <p>Currently, the webservers DocumentRoot is <code>/httpdocs/public</code>. <code>public</code> contains a symlink to <code>/httpdocs/blog</code> (I have Options FollowSymlinks on)</p>
  
  <p>All requests are routed through htaccess rules which either redirects it to httpdocs/public/index.php (which then loads Zend stuff) or a regular file/other area not inside the Zend application.</p>
  
  <p>The example code in wordpress is to use the following:</p>
  
  <pre><code>define('WP_USE_THEMES', false);
  require(APPLICATION_PATH .'/../blog/wp-blog-header.php');
  </code></pre>
  
  <p>But... this just tries to redirect me from <code>site.com/page</code> to <code>site.com/page/wp-admin/install.php</code> (which doesn't exist, and so I get a 'this page is redirecting in a way that will never complete' error from firefox, even though site.com/blog is setup and works perfectly fine. For some reason it doesn't seem to recognise that it is (probably because of path issues...)</p>
  
  <p>Does anyone know how I could fix this??</p>
  
  <p>Note: at the moment I just query the wordpress database, but this doesn't work properly because its not formatting the post content properly.</p>