Home Forums WoodMart support forum Displaying Review on Category Page

Displaying Review on Category Page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #150869

    sbwcws
    Participant

    I wanted to show reviews on category page the code I was given by the developer is

    <?php echo do_shortcode(‘[Woo_stamped_io type=”badge”]’); ?>

    Review – I need to display right under the Product Title

    #150940

    Eric Watson
    Participant

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    function add_custom_code_under_product_title() {
    	echo do_shortcode('[Woo_stamped_io type="badge"]');
    }
    add_action( 'woocommerce_shop_loop_item_title', 'add_custom_code_under_product_title', 20 );
    

    Kind Regards
    XTemos Studio

    #150942

    sbwcws
    Participant

    Thanks – It work

    #150953

    Eric Watson
    Participant

    You are welcome!

    #151286

    sbwcws
    Participant

    Can you please check the following link , It shows on some categories and on some it doesn’t am I missing anything ?

    #151331

    Artem Temos
    Keymaster

    The code we gave you works for both categories. The problem seems to be with your shortcode. You need to ask your developer to check that.

Viewing 6 posts - 1 through 6 (of 6 total)