If you’re struggling with the functionality of the Magento 2 CMS, or simply prefer WordPress as a platform for managing your pages and content, then you’re in the right place.
WordPress provides a clean, user-friendly alternative to what can often be an overwhelming Magento 2 platform. Whilst each CMS has its positives, there’s certainly less of a learning curve for beginners when it comes to using and navigating around the back-end of WordPress.
How can I integrate WordPress with Magento 2?
Follow our points below and in no time, WordPress will have inherited and integrated with your Magento 2 theme, and will be fully set up to handle your front-end operations.
- Firstly, download WordPress and upload the files into a folder named `wp` in your Magento 2 root directory.
- Next go to your Magento 2 URL /wp in your browser and follow the WordPress installation steps. You are able to use your Magento 2 database for WordPress or you can use an alternative database.
- After this, we download the extension ZIP for FishPig_WordPress from https://fishpig.co.uk/magento/wordpress-integration/ and create a folder in app/Code/FishPig/Wordpress and upload the files from the ZIP to here.
- Then we can enable the extension by running the commands (from inside your shell):
php bin/magento module:enable FishPig_WordPress
php bin/magento setup:upgrade
- Once those commands have been ran, we can log in to the Magento 2 admin and select WordPress from the menu on the left hand side.
- From here we are able to configure the extension, enter the path in the config option to your WordPress integration. This can either be an absolute or relative path.
- The extension will then be able to figure everything else from there, including WordPress URLs and database details.
- Next, login to your WordPress admin and select settings, general. There should be two URLs, first URL will be the path to your WordPress and installation and the second will be your integrated URL. This is the URL that you want your blog front-end to be visible on.
- Then you can edit your permalink structure in settings, permalinks. Here you can create a custom permalink structure.
- Finally, in Appearances, Themes, you can enable the FishPig theme.
And there you have it. Feel free to leave a comment below with any questions or queries related to integrating WordPress with the Magento 2 platform!