Title: [Plugin: Magento WordPress Integration] Cannot display Magento blocks
Last modified: August 20, 2016

---

# [Plugin: Magento WordPress Integration] Cannot display Magento blocks

 *  Resolved [stebcom](https://wordpress.org/support/users/stebcom/)
 * (@stebcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/)
 * Hi,
    I’m sorry to come with a noob question again, but I don’t get it: how exactly
   am I supposed to display Magento blocks, or anything from Magento, on the WordPress
   side? I tried the function _the\_block_ in page.php of my WordPress theme with
   both default blocks (such as catalog.topnav) and custom static bocks, but nothing
   is being displayed. What am I missing?
 * The Mage.php file path was entered correctly and I’m using default Magento theme.
 * Thank you!
 * [http://wordpress.org/extend/plugins/magento-wordpress-integration/](http://wordpress.org/extend/plugins/magento-wordpress-integration/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/#post-3027790)
 * Can you show me the exact code you’re putting in page.php, and also, any indication
   of what does happen?
 *  Thread Starter [stebcom](https://wordpress.org/support/users/stebcom/)
 * (@stebcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/#post-3027810)
 * Ok, I managed to display blocks from Magento inserting the code (for example 
   _the\_block(‘top.links’);_) in my content.php page. Still, I don’t have any custom
   php code working when I put it in page.php.
    Well, althought I have a bit of 
   experience with Magento, I’m totally new to WordPress, so I think my problems
   are WordPress related.
 * Thanks for the great job!
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/#post-3027811)
 * Are you sure what you are looking at is using the page.php template?
 *  Thread Starter [stebcom](https://wordpress.org/support/users/stebcom/)
 * (@stebcom)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/#post-3027813)
 * No, my problem is that I’ve just approached WordPress and I still have to learn
   how it works. Browsing the code, I found out that content.php is my actual template(
   for main contents), while page.php lies on a higher level. I’ll keep exploring
   that, thanks!
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/#post-3027814)
 * Ah OK, I’ll mark as resolved for now – feel free to come back with any questions
   though!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Magento WordPress Integration] Cannot display Magento blocks’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/magento-wordpress-integration_1f262e.
   svg)
 * [Magento Wordpress Integration](https://wordpress.org/plugins/magento-wordpress-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/magento-wordpress-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/magento-wordpress-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/magento-wordpress-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/magento-wordpress-integration/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-magento-wordpress-integration-cannot-display-magento-blocks/#post-3027814)
 * Status: resolved