From 555d212a5b6041037c1d9f690cf65a6c2e30a06a Mon Sep 17 00:00:00 2001 From: aldolat Date: Thu, 2 Jun 2016 22:29:00 +0200 Subject: [PATCH] Execute shortcodes with rich content text --- inc/pis-functions.php | 1 + inc/pis-widget.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/pis-functions.php b/inc/pis-functions.php index 9885f76..36a9ba9 100644 --- a/inc/pis-functions.php +++ b/inc/pis-functions.php @@ -518,6 +518,7 @@ function pis_the_text( $args ) { $content = $pis_query->post->post_content; // Honor any paragraph break $content = pis_break_text( $content ); + $content = do_shortcode( $content ); $output .= apply_filters( 'pis_rich_content', $content ); break; diff --git a/inc/pis-widget.php b/inc/pis-widget.php index eb809ab..0f7090c 100644 --- a/inc/pis-widget.php +++ b/inc/pis-widget.php @@ -2188,7 +2188,7 @@ public function form( $instance ) { $this->get_field_name('excerpt'), $options, $instance['excerpt'], - sprintf( __( 'For informations regarding these types of text, please see %1$shere%2$s', 'posts-in-sidebar' ), '', '' ) + sprintf( __( 'For informations regarding these types of text, please see %1$shere%2$s.', 'posts-in-sidebar' ), '', '' ) ); ?>