您现在的位置是:首页 > cms教程 > WordPress教程WordPress教程
利用fishpig_wordpress_integration插件整合WordPress到Magento
宛儿2025-03-24WordPress教程已有人查阅
导读magento目录下新建子目录blog,上传wordpress文件到该目录,新建数据库magento_blog,也可以省略这一步,直接装在原数据库上,用前缀区分表.运行http://yourmagento.com/blog安
magento目录下新建子目录blog,上传wordpress文件到该目录,新建数据库magento_blog,也可以省略这一步,直接装在原数据库上,用前缀区分表.
运行http://yourmagento.com/blog安装wordpress.
安装fishpig_wordpress_integration插件,地址为http:// .magentocommerce.com/magento-
connect/fishpig/extension/3958/fishpig_wordpress_integration
后台进入/WordPress/Setting/Database Integration配置相关信息
Database
设置wordpress数据库位置,是与magento同一数据库还是单独数据库.
Integration
设置整合方式
Semi-Integration
Semi-Integration在magento应用程序中提供有 的wordpress信息,且不自动显示.适合只想在magento中显示少量wordpress信息,让maegnto
跟wordpress保持各自的模板主题.
Full-Integration
Full-Integration允许wordpress的所以前台显示由magento负责,换言之wordpress使用magento的模板主题包.适合不想为wordpress单独制作模
板的用户.
如果选择Full-Integration,需要设置Blog Route,假设设置为wp,需要进入wordpress后台Settings->General设置Site address为
http://yourmagento1/index.php/wp
显示最新文章
运行http://yourmagento.com/blog安装wordpress.
安装fishpig_wordpress_integration插件,地址为http:// .magentocommerce.com/magento-
connect/fishpig/extension/3958/fishpig_wordpress_integration
后台进入/WordPress/Setting/Database Integration配置相关信息
Database
设置wordpress数据库位置,是与magento同一数据库还是单独数据库.
Integration
设置整合方式
Semi-Integration
Semi-Integration在magento应用程序中提供有 的wordpress信息,且不自动显示.适合只想在magento中显示少量wordpress信息,让maegnto
跟wordpress保持各自的模板主题.
Full-Integration
Full-Integration允许wordpress的所以前台显示由magento负责,换言之wordpress使用magento的模板主题包.适合不想为wordpress单独制作模
板的用户.
如果选择Full-Integration,需要设置Blog Route,假设设置为wp,需要进入wordpress后台Settings->General设置Site address为
http://yourmagento1/index.php/wp
显示最新文章
<reference name="left">
<block type="wordpress/post_list_recent" name="wp.recent-posts" template="wordpress/post/recent.phtml">
<action method="setTitle"><title>Recent Posts</title></action>
<action method="setPostCount"><post_count>3</post_count></action>
</block>
</reference>
{{block type="wordpress/post_list_recent" template="wordpress/post/recent.phtml" title="Recent Posts" post_count="3"}}
显示指定目录
<reference name="left">
<block type="wordpress/post_list_recent" name="wp.recent-posts" template="wordpress/post/recent.phtml">
<action method="setTitle"><title>Recent Posts</title></action>
<action method="setPostCount"><post_count>3</post_count></action>
<action method="setCategoryId"><category_id>1</category_id></action>
</block>
</reference>
{{block type="wordpress/post_list_recent" template="wordpress/post/recent.phtml" title="Recent Posts" post_count="3"
category_id="1"}}
显示指定作者
<reference name="left">
<block type="wordpress/post_list_recent" name="wp.recent-posts" template="wordpress/post/recent.phtml">
<action method="setTitle"><title>Recent Posts</title></action>
<action method="setPostCount"><post_count>3</post_count></action>
<action method="setAuthorId"><author_id>1</author_id></action>
</block>
</reference>
{{block type="wordpress/post_list_recent" template="wordpress/post/recent.phtml" title="Recent Posts" post_count="3"
author_id="1"}}
本文标签:
很赞哦! ()
相关教程
图文教程
wordpress升级需设置ftp的解决方法
每当我们想在wordpress上升级插件或者是升级wordpress的时候,就会弹出一个ftp登录,但是我们怎么跳过ftp登录呢
wordpress乱码怎么办
php wordpress乱码的解决办法:首先打开“wp-config.php”文件;然后修改内容为“define(’DB_CHARSET’, ”);”;
在swarm集群里通过service部署wordpress的方法
虽然wordpress只分布在了swarm-manager(192.168.205.10)这一个节点上,但是我们发现使用如下链接访问,效果都是一样的,是不是很神奇。
WordPress修改已添加的自定义栏目显示数量的方法
有时我们会在添加自定义栏目面板中选择已添加的自定义栏目名称,但WordPress默认只显示按字母排序的前30个自定义栏目名称
相关源码
-
(自适应响应式)供应链进出口服务pbootcms企业网站源码为供应链管理、进出口服务类企业设计,特别适合展示物流网络、贸易服务和供应链解决方案。采用响应式技术,确保在各类设备上都能呈现企业服务内容。查看源码 -
帝国cms7.5个人博客资讯文章模板下载本模板简洁个人博客网站设计开发,采用帝国CMS内核构建,只需替换文字图片即可快速搭建专业网站。自适应手机端设计,数据实时同步,操作简单便捷。PHP程序确保安全稳定运行,帮助您以较低成本获取持续业务。查看源码 -
(自适应)英文绿色精密模具零件加工五金零件pbootcms外贸网站模板本模板基于PbootCMS开发,为五金零件、精密模具加工等英文外贸企业设计。采用响应式布局,适配各类移动设备,是五金零件企业开展国际贸易的专业展示平台。查看源码 -
(自适应响应式)html5蓝色智能水表营销型网站pbootcms模板下载PbootCMS内核开发,为智能水表企业打造的营销型网站解决方案,本模板基于PbootCMS内核开发,为智能水表及相关行业企业设计,采用HTML5+CSS3技术构建,具有响应式布局。查看源码 -
(PC+WAP)货物运输快递物流汽车贸易pbootcms模板下载为货运代理、汽车贸易及快递企业设计的全终端适配网站系统,整合运单追踪与车辆展示核心功能模块原生开发的DIV+CSS架构,支持WebP图像压缩技术。查看源码 -
(自适应响应式)APP应用程序软件介绍落地页源码免费下载该模板为营销技术从业者设计,提供专业的内容展示平台。采用响应式布局,适配软件介绍、APP推广等营销场景,通过可视化后台可快速搭建符合行业特性的展示网站。查看源码
| 分享笔记 (共有 篇笔记) |

