您现在的位置是:首页 > 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_xmlrpc的python包远程操作wordpress的方法
wordpress提供了丰富的xmlrpc接口api来供我们远程操控wp的内容。伟大的开源社区有人就将这些api做了一下封装,提供了一个功能比较完整的python库,这里我将自己试验的一些内容做一下总结。
手机怎么访问本地电脑环境中的wordpress网页
如何手机访问本地电脑下的wordpress网页手机和电脑必须在同一个局域网内。1.需要知道自己电脑的ip ,可以通过ifconfig查看,端口号要知道,可以在mamp软件中查看服务的端口。
Docker部署WordPress+LNMP的方法(Nginx+PHP+MySQL)
Docker基于LXC实现了把软件封装到一个完整的文件系统,可以在docker容器中运行所需的一切代码,运行环境,系统工具和系统库。由于docker使用独立于主机的文件系统
wordpress仿站的方法,wordpress怎么仿站
1、目标网站的抓取,使用仿站小工具8.0.2挺好用的,能够尽可能多的将整个网站抓取下来。将文件保存到wp-content/tust。保存的首页default.html和其他的文件目录如下:
相关源码
-
(PC+WAP)蓝色智能环保机械设备网站营销型pbootcms模板下载本模板基于PbootCMS系统开发,为环保设备制造企业设计,特别适合展示环保机械、智能装备等产品。采用响应式技术,确保各类设备参数和技术方案在不同终端上都能清晰展示。查看源码 -
(自适应响应式)pbootcms食品零食店日化用品网站源码下载基于PbootCMS内核开发的响应式模板,为食品零食、日化用品等行业量身定制。该模板通过可视化设计展现产品特色,帮助企业快速搭建专业官网查看源码 -
(自适应)家政保洁保姆打扫卫生清灰服务pbootcms模板免费下载采用手工编写的DIV+CSS架构,代码结构清晰无冗余,加载速度优异。响应式设计适配各类终端设备,保障手机、平板、电脑端的一致浏览体验。查看源码 -
深蓝色风景摄影机构网站(自适应多端)pbootcms模板该模板基于PbootCMS内核开发,专为风景摄影机构、户外摄影企业设计,采用深蓝色主题传递专业与艺术感,全栈响应式架构确保PC、平板、手机端无缝适配PHP程序结合轻量级SQLite数据库也可以更换MySQL数据库查看源码 -
帝国cms7.5女性护肤搭配美妆潮流网站源码带数据4.5G本模板专为女性美容护肤行业设计,提供美容护肤、发型设计、女性健康、时尚化妆、娱乐新闻、服饰搭配等女性潮流资讯内容展示。采用帝国CMS7.5开发,同步生成电脑端和手机端,满足用户对美容时尚信息的获取需求。查看源码 -
(自适应)宽屏大气红色机械设备pbootcms模板源码下载为机械设备制造企业设计的响应式网站模板,采用PbootCMS内核开发。宽屏布局突出设备展示效果,红色工业风格贴合机械行业属性,支持PC端与手机端自动适配查看源码
| 分享笔记 (共有 篇笔记) |

