Ok, so I answered my own question. Here’s the answer for anyone needing help in the future:
In Magento, add this code to your index.php file:
if ( strpos($_SERVER['REQUEST_URI'], 'index.php/admin') === FALSE ) {
define('WP_USE_THEMES', false);
require_once($_SERVER['DOCUMENT_ROOT'].'/wp-blog-header.php');
}
This will tell Magento to call the WordPress that is installed on whatever domain your store is on.
i got this same error and I think it is related to sessions. I got this error:
Fatal error: Mage_Core_Model_Session_Abstract::getMessages()
Is there a workaround?
Sorry, local.xml not layout.xml.
Specifically it looks like my custom layout.xml is not being called and my custom Css file is not being added to the head.