• Resolved fichter

    (@fichter)


    Hi there! I would like to know is there any possibility to get the data from Woocommerce Product comments? I can’t see that comments in the list of Recent Comments. So it must be not available now. Isn’t it?

    I’m using this shortcode now [better_recent_comments number=”3″ date_format=”F j Y” format=”{avatar} {author} {post} <p>{comment}</p> {date}” avatar_size=”50″ post_type=”any” post_status=”any”]

    • This topic was modified 2 years, 7 months ago by fichter.
    • This topic was modified 2 years, 7 months ago by fichter.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, @fichter .

    Thanks for getting in touch! I see that you’re already using the post_type option in your [better_recent_comments] shortcode and that you’ve set it to "any". This should set the plugin to display the recent comments from all post types on your site.

    I also notice that you’re using the curly double quote symbol in your shortcode. Please could you instead use the straight double quote symbol for all the shortcode options and let me know if that gets the WooCommerce product post type comments to display on your site.

    Many thanks. I look forward to hearing from you. I will mark this as resolved for now.

    Thread Starter fichter

    (@fichter)

    Thank you for reply! I tried to change quote symbols other ways but it still doesn`t work with products. By the way that quotes in my code were straight. It must be were some changes in my message whith copy-past

    Hi, @fichter .

    Thanks for getting back to me with the supplemental info. I tested both the post_type="any" and post_type="product" shortcode options in a sidebar widget on a test site and I see what you mean.

    I took a closer look at the WooCommerce product post type and believe the issue is because there are no default product comments per se. What’s available out of the box are product reviews and it’s possible that WooCOmmerce uses a custom comment type for these. You would need to add a code snippet to modify the options passed to the get_comments function in Better Recent Comments.

    You can refer to this other/similar thread for more details about how you can implement this: Include NextGEN photo comments in BRC widget.

    I hope this makes sense and helps. Please let me know how it goes and if you have any more questions.

    Many thanks,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Integration with Woocommerce’ is closed to new replies.