Search code examples
wordpresstemplateswoocommerceshortcode

Woocommerce best_selling_products shortcode not working


Trying to add:

<?php echo do_shortcode('[products best_selling="true" limit="4"]'); ?>

In a template returns nothing. I see that no hooks are present for this but woocommerce says it should be supported.


Solution

  • Coming back to this one because I came across another shortcode that wasn't working.

    It turned out that the theme was the culprit. After switching to the default theme all shortcodes were working correctly.