-
I followed this guide for rankmath to utilise the ‘Single Product Description’ from rankmath> Titles and meta> product> single product description instead of the default values. I have used this line of code to get it done
add_action( 'rank_math/frontend/description', function( $generated ) {
if ( ! is_product() ) {
return $generated;
}global $post;
$desc = RankMath\Helper::get_settings( "titles.pt_product_description" );
$desc = RankMath\Helper::replace_vars( $desc, $post );
return empty( $desc ) ? $generated : $desc;
});
This was taken from https://support.rankmath.com/ticket/use-product-description-meta-from-settings-instead-of-excerpt/
I want to display the price , woocommerce product long description and woocommerce product short description in that order. I just need to know what the variable is for displaying the long product description of woocommerce.
The ticket ‘Editing product meta from single product page’ is closed to new replies.