Fishpig magento2与wordpress集成

时间:2017-03-06 13:10:59

标签: magento2 fishpig

我想在magento2页面上显示wordpress帖子。所以我启用了fishpig wordpress集成扩展。

并在magento页面内容中调用/添加块代码。  {{block class =" FishPig \ WordPress \ Block \ Post \ ListPost"命名=" wp.post.list"模板="交/ list.phtml"}}

因此它给出了setConnection()异常错误

点数: 我使用了不同的数据库进行word press和magneto。

如何整合鱼猪代码从word数据库获取帖子?

我是否需要在任何magneto 2文件中添加press数据库?

请帮我怎么做?

enter image description here

如何在magento网站上点击“阅读更多”按钮显示帖子详细信息页面?

现在它重定向到wordpress网站(发布详细信息页面)。

我的网站安装目录是/ news。

网站网址为:www.example.com/news

主页网址为:www.example.com/latest-news

Magento wordpress配置显示此错误

您的主网址(https://www.example.com/latest-news)无效。 此网址(www.example.com/latest-news)显示帖子列表但问题是帖子详细信息页面重定向到404页面。

1 个答案:

答案 0 :(得分:0)

您需要将扩展​​程序升级到最新版本,因为此错误已得到修复。