I advise you to contact your theme’s developer, since it seems that there is a conflict here.
My plugin is supposed to always show the link and hide the read-more included text, by default.
Hi,
thanks, but it has nothing to do with the theme – the shortcode is workking fine o regular pages. But I am using it inside a product custom field, and displaying the value inside the woocommerce cart and checkot table, and there it’s not working.
I cannot provide support for custom WC templates – and if this is the case here, we are talking about a customized WC template which belongs to the theme.
Can you try my plugin onto a fresh WP installation that includes WC please to verify the same?
No, nothing is “customized”. It’s a basic WP installment with woocommerce, and woocommerce offers by default custom fields for each product. I am using
add_filter( 'woocommerce_cart_item_name', 'customizing_cart_item_name', 10, 3 );
function customizing_cart_item_name( $product_name, $cart_item, $cart_item_key ) {
$product = $cart_item['data']; // Get the WC_Product Object
if ( $value = $product->get_meta('description') ) {
$product_name .= '<small>'. do_shortcode( $value ) .'</small>';
}
return $product_name;
to display your shortcode in the cart and checkout table. But as I mentioned, the “Read more” is open by default and can’t be used inside the tables.