Yes, you can use the [specs-table] shortcode anywhere in the loop.
You could also use the dw_get_table_result( $post_id ) php function if you need more customization.
In your case, to add the table to short description section you can do something like this:
add_filter( 'woocommerce_short_description', 'custom_woocommerce_short_description' );
function custom_woocommerce_short_description( $description ) {
global $post;
$description = $description . do_shortcode( '[specs-table]' );
return $description;
}
-
This reply was modified 9 years, 3 months ago by
Dornaweb.
-
This reply was modified 9 years, 3 months ago by
Dornaweb.