Title: Shortcode in current version not working
Last modified: May 18, 2025

---

# Shortcode in current version not working

 *  Resolved [Ericmuc](https://wordpress.org/support/users/ericmuc/)
 * (@ericmuc)
 * [1 year ago](https://wordpress.org/support/topic/shortcode-in-current-version-not-working/)
 * Hi there,
   thanks for the recent update – it looks great!However, I noticed that**
   shortcodes are currently not working properly** in the new version.
 * At the moment, only `core/shortcode` blocks are passed through `do_shortcode()`,
   but shortcodes inside other blocks (like paragraphs or columns) are no longer
   executed.
 * Also, the final `$content` doesn’t seem to be passed through `apply_filters( '
   the_content', $content )`, which is normally essential for processing shortcodes,
   oEmbeds, and other content filters.
 * Would it be possible to adjust this in a future update?
 * Here’s a version that works well on our end:
 *     ```wp-block-code
       $content = '';        foreach ( $blocks as $block ) {            if( 'core/embed' === $block['blockName'] ){                $content .= apply_filters( 'the_content', render_block( $block ) );            }else{// $content .= render_block( $block );$content .= do_shortcode(render_block( $block ));}}$content = apply_filters('the_content', $content);return wp_kses( $content, $allowedHTML );    }
       ```
   
 * Thanks a lot for looking into it – and for your great work on this plugin!
    -  This topic was modified 1 year ago by [Ericmuc](https://wordpress.org/support/users/ericmuc/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Plugin Envision Support](https://wordpress.org/support/users/pluginenvisionsupport/)
 * (@pluginenvisionsupport)
 * [1 year ago](https://wordpress.org/support/topic/shortcode-in-current-version-not-working/#post-18471726)
 * Hi [@ericmuc](https://wordpress.org/support/users/ericmuc/),
 * We have updated the code without a version update. You can try it now.
 * If everything goes right, the updated code will persist. If other users have 
   issues, we will return to the previous code.
   Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Shortcode in current version not working’ is closed to new replies.

 * ![](https://ps.w.org/blocks-to-shortcode/assets/icon-256x256.png?rev=3190267)
 * [Blocks to Shortcode - Use blocks everywhere: in page templates, Elementor, etc.](https://wordpress.org/plugins/blocks-to-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blocks-to-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blocks-to-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/blocks-to-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blocks-to-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blocks-to-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Plugin Envision Support](https://wordpress.org/support/users/pluginenvisionsupport/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/shortcode-in-current-version-not-working/#post-18471726)
 * Status: resolved