WordPress.org

Support

Support » Plugins and Hacks » How to use WooCommerce Shortcodes

How to use WooCommerce Shortcodes

  • I am looking to used some shortcodes on a new page for my wordpress site.. But I am not sure how to use them, do I need to reference a woocommerce file somewhere on the page? like you do with css files?

    I have tried to add featured products to my home page like this

    [featured_products per_page="12" columns="4"]

    however all it dose is show [featured_products per_page=”12″ columns=”4″] on the page.. not the actual content???

    any help would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you have a php template, then try

    <?php echo do_shortcode(‘[featured_products per_page=”12″ columns=”4″]’]); ?>

    XavaIreland’s code is great, but a little bug, the last bracket is redundant
    It’s should be
    <?php echo do_shortcode(‘[featured_products per_page=”12″ columns=”4″]’); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use WooCommerce Shortcodes’ is closed to new replies.
Skip to toolbar