0

我似乎无法找到将 fishpig magento wordpress 集成到 getPosts() 方法的任何文档。

我只需要调用这个方法并排除单个类别。

我希望它会像

$id = 123;
$this->getPosts(array('category!=' => $id));

非常感谢任何帮助,谢谢!

4

1 回答 1

1

实现这一目标的最简单方法是使用 WordPress 的 Ultimate Category Excluder 插件:

https://wordpress.org/plugins/ultimate-category-excluder/

这将允许您排除属于某些类别的产品出现在您的主要博客提要中。要使其在集成到 Magento 时正常工作,您将需要以下附加扩展:

http://fishpig.co.uk/magento/wordpress-integration/ultimate-category-excluder/

在安装此附加扩展之前,请确保 Magento 中的 WordPress 集成模块是最新的。

于 2015-01-22T12:11:35.430 回答