• Resolved reeper6868

    (@reeper6868)


    Hi,

    I’m in need of some help regarding top_rated_products. I know it can be placed as a block in pages and posts with the wordpress editor. However, I would like to display top_rated_products on each product category page in woocommerce instead.

    So eg. the product category selected is Activewear, it would only display top-rated products in this category. I do have the current shortcode example below:

    [top_rated_products per_page=”6″ columns=”3″ orderby=”date” order=”DESC” category=”1360″]

    Just not sure how to implement this. Do I need to create custom category templates or can it be done by a simple code snippet in functions.php?

    Please any help or advice would be much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • MayKato

    (@maykato)

    Hello,

    You can insert a shortcodes in the category description filed. This can show the applicable products at the top of your category page. If your theme does not display category descriptions, you’ll have to modify the theme. In that case, I’d recommend reading through this tutorial for how to do it.

    [top_rated_products per_page=”6″ columns=”3″ orderby=”date” order=”DESC” category=”1360″]

    Looking at your shortcode, per_page is not supported with core WooCommerce – you’ll need to use limit instead. To learn more about available shortcodes, please visit our documentation here: https://woocommerce.com/document/woocommerce-shortcodes/

    Thread Starter reeper6868

    (@reeper6868)

    Thanks heaps that helped.

    Abiola Ogodo

    (@oaoyadeyi)

    @reeper6868

    Glad to hear it – thanks for letting us know!

    If you have any further questions, I recommend creating a new thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Place Top rated products in all category pages.’ is closed to new replies.