Magento WordPress Related Products Documentation
« Back to Magento WordPress - Related Products
-
Installation
Before installing Related Products, you must upgrade any installed FishPig modules to the latest version.
You can install the module for Magento 2 using Composer or you can manually install it using FTP.
-
Run the following commands in your Magento 2 root directory to install the module using Composer.
# Add the FishPig Composer repo composer config repositories.fishpig composer https://repo.fishpig.co.uk/ # Install the module using Composer composer require fishpig/magento2-wordpress-integration-relatedproducts:^3.0 # Enable the module in Magento 2 php bin/magento module:enable FishPig_WordPress_RelatedProducts # Run the Magento upgrade system php bin/magento setup:upgrade
-
You can download the latest version of the module from the Downloads page.
Extract the ZIP file and upload the files to your Magento site at the directory below:
app/code/FishPig/WordPress_RelatedProducts
When creating the folders, ensure you use the correct capitalisation.
To complete the installation, run the following commands in a terminal.
# Enable the module in Magento 2 php bin/magento module:enable FishPig_WordPress_RelatedProducts # Run the Magento upgrade system php bin/magento setup:upgrade
-
-
Change the Post Limit in Product Tab
By default, only 5 related posts will display on the product page. You can increase this using the following XML in your custom theme.
<?xml version="1.0"?> <!-- /** * Create this file at: * app/design/frontend/YourVendor/YourTheme/FishPig_WordPress_RelatedProducts/layout/catalog_product_view.xml */ --> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="related_posts.tab"> <arguments> <argument name="post_limit" xsi:type="number">20</argument> </arguments> </referenceBlock> </body> </page>
Want to Make Magento 2 Faster?
Make Magento 2 instantly faster by installing our industry recognised optimisation modules.
-
Magento 2 Full Page Cache
The fastest full page cache extension available for Magento 1 and Magento 2. It's even faster than the default Magento 2 FPC.
£149 -
Magento 2 Page Speed
Automatically increase your page speed by optimising your content and assets.
£149 -
Magento 2 Security Suite
Protect your site from spam, bots and hackers using this automated rule based security system.
£149 -
Magento 2 Cache Warmer
Automatically request all URLs in your XML sitemap to pre warm your full page cache.
£129