Using WP_Query() in Magento shows error
I am using Magento (directory example.com/app
) and WordPress (directory example.com/blog/wp-blog-header.php
).
When I set up a WP_Query
in Magento's template\catalog\product\view.phtml
it shows the following error:
Fatal error: Cannot redeclare __() (previously declared in \app\code\core\Mage\Core\functions.php:93) in wordpress\wp-includes\l10n.php on line 98
Is there a way to get this to work?