I need to display my recent blog post under all selected category landing page and selected products left side.
closed as off-topic by Priyank, Piyush, Dhiren Vasoya, Keyur Shah, Jai May 29 '18 at 8:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: http://sscce.org/" – Priyank, Piyush, Dhiren Vasoya, Jai
You can use the below code to your local.xml. This will show the recent posts and categories of blogs to left side of your product page(if product page layout is 2cloumns-left).
<catalog_product_view> <reference name="left"> <block type="blog/menu_sidebar" name="left.blog.menu" after="-"> <action method="setTemplate"> <template>aw_blog/menu.phtml</template> </action> <block type="blog/tags" name="blog_tags" /> </block> </reference> </catalog_product_view>
You can put condition according to your requirement on blog/menu.phtml or create one new file blog_menu.phtml and put your conditions.
Also if you want to use the same to catagory page then update the handler for category pages