Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

Wordpress header option in Magento
Jr. Member
Total Posts:  5
Joined:  2009-06-28

Hi All, I have a small question. I have included a wordpress blog on my magento shop via the fishpig module. This works great but what I want to include are header options via static cms blocks. I think I need to adjust something in the phtml of the homepage.

This is the current code:

<div class="page-title blog-title <?php if (!$this->isFirstPage()): ?>not-<?php endif; ?>first-page<?php if ($this->isFirstPage() && $this->getTagLine()): ?> with-tagline<?php endif; ?>">
<h1><?php echo $this->escapeHtml($this->getBlogTitle()) ?></h1>
<?php if ($this->isFirstPage() && $this->getTagLine()): ?>
<p class="blog-desc blog-tag-line"><?php echo $this->escapeHtml($this->getTagLine()) ?></p>
<?php endif; ?>
<div class="blog-home">
<?php echo $this->getPostListHtml() ?>

I played around with the below line to call the static block but this is not working:(

echo $this->getLayout()->createBlock(’cms/block’)->setBlockId(’example_block’)->toHTML();

Any solution examples would be great!!


Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top