diff --git a/php/classes/rest/class-episodes-rest-controller.php b/php/classes/rest/class-episodes-rest-controller.php index 0671dfbc..008b3c92 100644 --- a/php/classes/rest/class-episodes-rest-controller.php +++ b/php/classes/rest/class-episodes-rest-controller.php @@ -331,6 +331,15 @@ public function get_items( $request ) { // Handle query results $posts = array(); + // Prepare Divi content + add_filter( 'the_content', function ( $content ) { + if ( false !== strpos( $content, '[et_pb_' ) ) { + $content = do_shortcode( $content ); + } + + return $content; + } ); + foreach ( $query_result as $post ) { // Get PostController for Post Type diff --git a/seriously-simple-podcasting.php b/seriously-simple-podcasting.php index 5f9475d1..1cc9b120 100644 --- a/seriously-simple-podcasting.php +++ b/seriously-simple-podcasting.php @@ -1,7 +1,7 @@