本文共 929 字,大约阅读时间需要 3 分钟。
1.magento 1.4.1.1
wordpress
2安装插件
名称: Fishpig's Wordpress Integration
Extension Key:magento-community/Fishpig_Wordpress_Integration
网址: http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration
介绍: 有一个老插件已经N久没更新了,这个是另一个新鲜出炉的Wordpress与Magento整合插件
3
安装wordpress
必须在magento目录下新建一个文件夹名字为blog
数据库和magento一个就可以,还方便
然后安装
wordpress汉化见magento的press汉化
4。magento设置
后台设置
5显示
在
template/callouts/magento_blog.phtml文件中写入
<?php $channel = new Zend_Feed_Rss('http://127.0.0.1/magento_test/blog/?feed=rss2'); ?>
<div>
<div>
<h2><?php echo $this->__('Latest Articles form the Blog') ?></h2>
</div>
<div>
<ol id="graybox-latest-news">
<?php foreach ($channel as $item): ?>
<li><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></li>
<?php endforeach; ?>
</ol>
</div>
</div>
然后再catelog中写入
<block type="core/template" template="callouts/magento_blog.phtml">
6wordpress中添加文章,刷新,查看存放的位置是否显示!!
转载地址:http://zedli.baihongyu.com/