Issue: [cusrev_all_reviews] show on product tab only reviews of product
-
Hello there,
We need your help ?? I tried many chatGPT php codes, but still same wrong result.
We need show all reviews on new product tab. So ..I add code for new tab + add short code [cusrev_all_reviews] for all reviews (on standard page works ok – show all reviews for all product)
But somehow on product tab [cusrev_all_reviews] show only reviews of product from this product page. :/
I tride add long shordcode with all atributes [cusrev_all_reviews …….] but same result. Only reviews of product where is this review tab placed (on product).
Show case of php code:
function custom_add_product_tab($tabs) {
// P?idání nové karty
$tabs[‘recenzie_actimaris’] = array(
‘title’ => __(‘Recenzie ActiMaris’, ‘your-text-domain’),
‘priority’ => 50, // Pou?ijte vy??í ?íslo pro umístění karty jako p?edposlední
‘callback’ => ‘custom_product_tab_content’
);// Se?azení karet podle priority uasort($tabs, function($a, $b) { return $a['priority'] <=> $b['priority']; }); return $tabs;
}
function custom_product_tab_content() {
echo do_shortcode(‘[cusrev_all_reviews]’);
}add_filter(‘woocommerce_product_tabs’, ‘custom_add_product_tab’);
Thank you for your help
Emanuel
- You must be logged in to reply to this topic.