- First we need to integrate the fishbig in my magento site.(fishbig used for integrate wordpress with magento).
- When we integrate fishbig with magento we can have one folder "wordpress" in the template folder.
(path:- app\design\frontend\base\default\template).
- in that we can create our custom folder like "home". in that we need to create one .phtml file called "slider.phtml".
- the followings code returns the post name, post featured image etc...
<?php $posts = $this->getPosts()
if (count($posts) > 0): ?>
<?php
foreach($posts as $post): ?>
<?php
$image_url = $post->getFeaturedImage()->getFullSizeImage(); //Featured image
$post_link = $post->getPermalink(); // Post link
$post_date = $post->getPostDate(); // Post date
$post_day = date('l', strtotime($post_date)); // Day of Post
$post_title = $post->getPostTitle(); // Post Title
<?php endforeach; ?>
<?php endif; ?>
-
Then call this template in home page slide section like,
<div class="home_banner">
<?php
$magento_block = Mage::getSingleton('core/layout');
$blog = $magento_block->createBlock('wordpress/sidebar_widget_posts')->setTemplate('wordpress/home/homeslide.phtml');
$blog->setPostCount(6);
echo $blog->toHtml();
?>
</div>
Reference Link: How to display blog posts with featured images on magento homepage?
Hi Ravichandran ,
ReplyDeleteNice post,thanks for sharing this information.Looking forward for more interesting posts like this.
Magento Developers
Absolutely fantastic topic! Great blog. Thanks for taking the time and writing this.
ReplyDeleteThere some very impressive points in your blog. I must appreciate your excellent work. I find the blog post very interesting and moreover very informative.
ReplyDeletemagento webshop
I get a lot of great information from this blog. Thank you for your sharing this informative blog. Recently I did PHP course at a leading academy. If you are looking for best PHP Training Institute in Chennai visit FITA IT training academy which offer real timePHP Training in Chennai.
ReplyDelete
ReplyDeleteHi, Thanks for sharing this valuable blog.I was really impressed by reading this blog. I did HTML5 Courses in Chennai at reputed HTML5 Training Institutes in Chennai. This is really useful for me to make a bright future in designing field.
i really like this article please keep it up.
ReplyDeletenewizze
Hi, interesting to read this blog about magentomagento training in chennai
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteNice blog post!!! Very informative and appreciable . keep going on. I really read it.
ReplyDeleteBest sap institute in India ,SAP online training & sap training courses
SAP ABAP on HANA Online Training
sap hana online training
sap S/4 HANA training online
SAP UI5 Online Training in India
Learn SAP online
sap fiori training online
sap fico training online
Thanks
Good knowledge sharing article.Thanks for your blog.
ReplyDeletemobile service centre
mobile service center in chennai
mobile service center chennai
mobile service centre near me
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteSalesforce Training in Chennai | Certification | Online Course | Salesforce Training in Bangalore | Certification | Online Course | Salesforce Training in Hyderabad | Certification | Online Course | Salesforce Training in Pune | Certification | Online Course | Salesforce Online Training | Salesforce Training
شركة تنظيف بالجبيل
ReplyDeleteشركة تسليك مجاري بجازان