AW Blog is a Magento extension from aheadWorks that is reckoned among the best buzz and word of mouth marketing tips. It not only provides your regular customers with up-to-date information but brings additional visitors to your site, builds relevant SEO-friendly text links, and serves as assistance in building sales strategy.

The Blog extension gives you a noteworthy opportunity to communicate with your regular customers and casual visitors. With Blog you can create an interactive two-way communication platform to provide official information on your store news, upcoming products, promotions, and get customers’ feedback.

Plugin is available from

Display blog posts to CMS pages :

Step 1

In /public_html/app/design/frontend/default/default/template/aw_blog/
Add new Phtml file Ex. blog-homepage.phtml
and Copy and Past this code in blog-homepage.phtml

Code :

$posts = Mage::getModel(‘blog/blog’)
->addFieldToFilter(‘status’, 1)
->setOrder(‘created_time ‘, ‘desc’)
<h3><?php echo $this->__(‘BLOG – Latest Posts’);?></h3>
<?php foreach ($posts as $post): ?>
<a href=”<?php echo $post->getAddress(); ?>”><?php echo $post->getTitle(); ?></a>
(<?php echo $this->formatDate($post->getCreatedTime(), Mage::getStoreConfig(‘blog/blog/dateformat’), true); ?>)
<?php endforeach; ?>
<div id=”messages_product_view”></div>
<?php endif;?>

You can change blog post limit Change in ->setPageSize(3) set your size

Step 2

Now call blog-homepage.phtml in cms page
Open your cms page -> Edit page -> Click Content tab
And add this

{{block type=”core/template” name=”” template=”aw_blog/blog-homepage.phtml”}}

And Also call in another phtml file
Ex. Open any Phtml file and write this line

<?php echo $this->getLayout()->createBlock(‘core/template’)->setTemplate(‘aw_blog/blog-homepage.phtml’)->toHtml(); ?>

Enjoy 🙂

By admin

2 thoughts on “Magento – AheadWorks Blog – Display Blog Posts To CMS Pages”

Leave a Reply

Your email address will not be published. Required fields are marked *