Title: Issue displaying custom block
Last modified: August 21, 2016

---

# Issue displaying custom block

 *  [Liz](https://wordpress.org/support/users/lizery/)
 * (@lizery)
 * [13 years ago](https://wordpress.org/support/topic/issue-displaying-custom-block/)
 * I am attempting to display the newsletter block on my wordpress page.
    local.
   xml contains:
 *     ```
       <reference name="footer">
       <block type="newsletter/subscribe" name="footer.newsletter" template="newsletter/subscribe.phtml"/>
       </reference>
       ```
   
 * footer.phtm contains:
 *     ```
       echo $this->getChildHtml('footer.newsletter')
       ```
   
 * WP’s footer.php contains:
 *     ```
       the_block('footer.newsletter');
       ```
   
 * WP will not display the block though. It only says “Sorry, that block could not
   be found.” If I use left.newsletter as the block name, it will display the default
   newsletter template, but I need it to use my custom file. Am I doing something
   wrong?
 * [http://wordpress.org/extend/plugins/magento-wordpress-integration/](http://wordpress.org/extend/plugins/magento-wordpress-integration/)

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

 *  [redesigned](https://wordpress.org/support/users/redesigned/)
 * (@redesigned)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773025)
 * did you ever figure this out? i am trying to do something similar.
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773027)
 * Hi both,
 * I will check into this issue and report back shortly.
 *  [marykulp](https://wordpress.org/support/users/marykulp/)
 * (@marykulp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773028)
 * I’m having a similar issue w custom blocks and think I must be missing something..
 *  ` echo “<li class=’page_item’>”;
    $staticblock = get_static_block(‘test_block’);
   echo $staticblock; echo “</li>”;
 *  echo “<li class=’page_item’>”;
    $block = get_block(“catalog.topnav”); echo $
   block; echo “</li>”; `
 * the first block, a static block, renders just fine. block 2, a default custom
   block, does not. please advise.
 * PS– Just found this code and it works like a champ.. [http://asia-connect.com.vn/2009/09/run-magento-code-outside-of-magento/#printSource](http://asia-connect.com.vn/2009/09/run-magento-code-outside-of-magento/#printSource)
   mwi plugin acts like the include so you don’t need it but the rest is gold.
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773029)
 * Hi Guys,
 * I’ve just tested this and it seems to work fine for me!
 * Could you double check that you’ve entered your theme settings into the Mage/
   WP settings area in WordPress?
 *  [marykulp](https://wordpress.org/support/users/marykulp/)
 * (@marykulp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773030)
 * yes.. I think.. and the theme seems to be functioning fine.
 * here is a screenshot of my settings [http://images.powermonitors.com/080213.png](http://images.powermonitors.com/080213.png)
 * . . .
 * while I have you on the phone… any thoughts on adding qty input to your shortcode??
   trying to figure that out but I am sort of a novice when it come to php
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773032)
 * Are you sure your theme isn’t in the default package? For example:
 * app/design/frontend/default/go4template?
 * I’m updating the shortcodes soon, so may add that in as a feature.
 *  [marykulp](https://wordpress.org/support/users/marykulp/)
 * (@marykulp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773037)
 * yeah– that’s exactly where it is… I installed it via Magento– and that’s where
   it ended up… it’s also where the documentation says it goes. I thought I read
   your site carefully.. is this folder supposed to be installed elsewhere for this
   plugin to function?
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773038)
 * It just means your settings are wrong. The package name should be default
 *  Plugin Author [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * (@jamesckemp)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773043)
 * Could you confirm whether this was the issue?

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

The topic ‘Issue displaying custom block’ 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/)

 * 9 replies
 * 4 participants
 * Last reply from: [jamesckemp](https://wordpress.org/support/users/jamesckemp/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/issue-displaying-custom-block/#post-3773043)
 * Status: not resolved