diff --git a/includes/fbproduct.php b/includes/fbproduct.php index 358f9325a..fde9afede 100644 --- a/includes/fbproduct.php +++ b/includes/fbproduct.php @@ -751,9 +751,9 @@ public function get_fb_description() { // If no description is found from meta or variation, get from post if ( empty( $description ) ) { $post = $this->get_post_data(); - $post_content = WC_Facebookcommerce_Utils::clean_string( $post->post_content ); - $post_excerpt = WC_Facebookcommerce_Utils::clean_string( $post->post_excerpt ); - $post_title = WC_Facebookcommerce_Utils::clean_string( $post->post_title ); + $post_content = WC_Facebookcommerce_Utils::clean_string( apply_filters( 'the_content', $post->post_content ) ); + $post_excerpt = WC_Facebookcommerce_Utils::clean_string( get_the_excerpt( $post ) ); + $post_title = WC_Facebookcommerce_Utils::clean_string( get_the_title( $post ) ); // Prioritize content, then excerpt, then title if ( ! empty( $post_content ) ) {