Mag products integration for WordPress


This plugin use the Magento REST API to list products on your page or blog post.

Use the configuration page to link your Magento store to your WordPress and the shortcode to display the products.

The plugin works out of the box, but I also provide a free Magento extension to give you more functionalities. Find more details on the plugin’s website page.

Plugin features

  • Show product title, short description, price and buy now button
  • Cache to reduce page load time
  • Shortcode to list products on your page or blog post

Magento extension features

  • Reduced page load time: only 1 request to fetch all data
  • Thumbnails generation (by default images are natural size and resized using img width/height attributes)

Actions and filters

For developers: actions and filters documentation.

Coming soon

  • Show only one product in your posts or your pages with a shortcode (1.4.0)
  • OAuth authentication (1.3.0)
  • Possibility to set custom thumbnail for products without images (1.4.0)
  • Magento 2 compatibility (2.0.0)
  • PHPUnit tests on github


  • Products listing
  • Plugin's configuration page
  • Page shortcode example
  • Customizer settings


  1. Extract to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Create REST API user and role in your magento store (see our documentation)
  4. Configure the plugin through the ‘Magento’ menu in WordPress
  5. Place [magento] shortcode in one of your page or blog posts


June 28, 2017
This plugin is an absolute gold. Running a magento store with an active blog, we always need some way to send the traffic back to the money site (the store) and this plugin is a great way of doing just that. Initially (couple of years ago) we had another paid plugin which did not do even 10% of what this plugin does. Mr. Francis was also very very supportive and provided a lot of help in fixing a few things and he even went on to write a custom piece of script to customize a functionality. I could not have asked for a better support from a plugin developer and I am really grateful to Mr. Francis. The plugin itself now works flawlessly and is an important tool for our business. Three cheers to the plugin and the man behind it.
June 27, 2017
Good integration to share products in posts. I had a problem with viewing the pictures but it was my fault (I forgot to enable a check) and the assistance helped me by checking what I had done. The direct purchase button that links the product to its page is very convenient to help convert. I would recommend to those who want to share some content without "dirty" the magento installation. I have chosen to install it on separate databases in a subdirectory and it works fine. Thank you
February 7, 2017
Took a while to find what I was doing wrong, but the developer was there to help. Works perfectly, the best extensions I found to retrieve the products from Magento. And it's free!
December 16, 2016
Not being a Magento expert, actually having had very little experience of it previously, I was asked to incorporate a product section into a new WP site. This plugin is just about the only one that does what it promises to. Setup is a little complex, not because of the plugin, but because Magento is an administrative war zone where one wrong move can prove fatal. After some initial problems, the author provided excellent support and had everything working in less than an hour. If you need to show products from a Magento store in WP, I can't recommend this plugin highly enough.
Read all 7 reviews

Contributors & Developers

“Mag products integration for WordPress” is open source software. The following people have contributed to this plugin.




  • Fix an issue that prevents custom CSS from generating.


  • Fix responsive breakpoints (0-575px 1 column, 576-767px 2 columns, > 768px 3 columns)
  • NEW Action hook mag_products_integration_before_product to show content before each product
  • NEW Action hook mag_products_integration_after_product to show content after each product
  • NEW Filter hook mag_products_integration_product to add additional product infos


  • CAUTION The store attribute of the magento shortcode is now mandatory.
  • NEW Magento extension has been updated to 1.0.3 and is now on github
  • Fix wrong products links like /product/view/id/82797/…
  • Remove translations from the plugin and move them to Translating WordPress
  • DEVELOPER Clean up PHP code to respect WordPress Coding Standards


  • Fix wrong store parameters that prevents store filter to works
  • NEW Shortcode attribute “description” to control the product description length (can be numeric, true or false)


  • PLEASE NOTE If you are using the Magento module, you must update it to 1.0.2 !
  • NEW Add new setting to disable customizer colors
  • Fix wrong product links with multiple stores
  • Fix PHP fatal error if wp_remote_get() returns WP_Error instance
  • DEVELOPER Refactoring PHP code for better readability


  • Improve errors handling when the REST API URL is not valid
  • Code optimization
  • Fix CSS flexbox Safari issue
  • Fix image_width and image_height attributes that were missing on the tag
  • Remove inline style attribute on the tag
  • Add a minified version of style.css
  • Add a minified version of the three JS scripts
  • PLEASE NOTE There are no media queries by default (breakpoints for mobile devices)
  • DEVELOPER Updated version on github


  • Fix PHP static function warning on debug mode
  • Remove JQuery script and replace with CSS flexbox
  • NEW Add customizer settings to modify the colours without rewriting the CSS


  • Fix missing link on “Buy it now” when using the Magento extension
  • Strip all HTML tags on product name and product short_description by default


  • Fix missing link on “Buy it now” button when “buy_now_url” is missing from REST API response.


  • Fix Magento module requests when Magento is in a subdirectory.


  • Fix cache to work with multiple shortcodes. Currently, the cache was only working with one shortcode which prevents users to show different categories of products on different pages.
  • Test plugin with WordPress 4.5


  • Fix missing product image (If you are using the Magento module, you must update it to 1.0.1)
  • NEW Hide products image via shortcode (use hide_image=”true”, default is false)
  • NEW Add flush cache button
  • Update cache to use WordPress Transients API
  • Replace CURL functions with WordPress HTTP API
  • Update POT file and French translation


  • Fix undismissable notice on other admin pages
  • Update POT file and French translation


  • NEW Cache for better performance (reduced page load time)
  • NEW Possibility to disable the provided jQuery script
  • Default CSS style improvements
  • Clearer error messages and notices


  • Fix missing product URL and buy it now button for those who are not using the Magento module
  • Add french (fr_FR) translation
  • Add PHPDoc on methods and properties
  • Update POT file


  • Add new hooks
  • Add 13 new actions
  • Add 7 new filters


First stable version.