This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Maje WooCommerce External/Affiliate Product Link Shortcodes


Link to your external or affiliate woocommerce products from other content with a shortcode instead of requiring your visitors to go to the product page first.

Usage Examples

available values:

  • product_id (required): The ID of your product

    [wc_external_link product_id=’241′]Link Text[/wc_external_link]

  • new_window: exclude for same window opening or set to ‘true’ if you want the link to open in a new window

    [wc_external_link product_id=’241′ new_window=’true’]Link Text[/wc_external_link]

  • link_title: exclude for none or set to whatever you want your visitor to see when they mouseover the link

    [wc_external_link product_id=’241′ link_title=’This shows when I hover over the link’]Link Text[/wc_external_link]

  • link_rel: exclude for none or set to one of the types from here:

    [wc_external_link product_id=’241′ link_rel=’author’]Link Text[/wc_external_link]

  • params: See Examples in link below: add in your url variables (does not add ? or prefixed & to an extension of already in place product variables). This appends to the product url entered into the product.

If you leave product_id blank the link will be ‘#’ (same page).

Usage and extending examples can be found here:


  1. Have WooCommerce installed and activated
  2. Add this plugin or upload the .zip file (downloaded from here)
  3. Activate plugin


Installation Instructions
  1. Have WooCommerce installed and activated
  2. Add this plugin or upload the .zip file (downloaded from here)
  3. Activate plugin


exactly what I was looking for

This plugin is exactly what I've been looking for. I have an affiliate site but use woocommerce for tracking and displaying over 400 products. But there are many times when I want to link directly to the affiliate url - in blog posts, reviews, comparisons, etc. - without going to the product page. In those cases going to the product page would just be an extra step where the customer could abandon the process and it's not really needed. This plugin accomplishes this goal perfectly. Also allows me to open in a new browswer tab, and nofollow the link. PERFECT!
Read all 2 reviews

Contributors & Developers

“Maje WooCommerce External/Affiliate Product Link Shortcodes” is open source software. The following people have contributed to this plugin.




  • Tested against WordPress 4.9
  • Tested against WooCommerce 3.2.4
  • Updated readme for with specific usage examples to avoid bad copy/pasting


  • Fixed params and updated documentation
  • Tested against WordPress 4.8.3


  • Tested against WordPress 4.7


  • Tested against WordPress 4.6.1


  • Added params argument to shortcode


  • Updated tested to WordPress version.


  • Created plugin