WordPress patterns create with bricks builder not showing

in Download Manager Free

Viewing 3 posts - 1 through 3 (of 3 total)
Mar 3, 2026 at 12:04 pm
#212507
Participant
mrcbt
OP

Hi,

I activated the ‘Gutenbern editor’ in the settings.

I have a bricks component that works in gutenberg as a pattern or even as a block.
When I add that to the package. It shows in the gutenberg editor, but not in the frontend.

Is there a filter I need to activate to make it work with bricks ?

Mar 3, 2026 at 12:37 pm
#212508
Participant
mrcbt
OP

Was able to fix with AI help, but please let me know if there is another option or a better way to achieve this.

If anyone wonders, here is the code I put in functions.php

add_filter( 'wpdm_after_prepare_package_data', 'fix_patterns_gutenberg_wpdm' );

function fix_patterns_gutenberg_wpdm( $package ) {
    
    
    if ( ! empty( $package['post_content'] ) ) {
       
        $package['post_content'] = do_blocks( $package['post_content'] );
    }

    // WPDM uses 'description' instead of 'post_content', so lets fix both
    if ( ! empty( $package['description'] ) ) {
        $package['description'] = do_blocks( $package['description'] );
    }

    return $package;
}
Mar 3, 2026 at 1:38 pm
#212510
Moderator
Nayeem Riddhi
Staff

Hello mrcbt,

Hope you are well. Thanks for writing to us. If this solution working properly with your bricks builder, you can continue with this. However, Please kindly check and let me know if you have any queries more.

Thank you

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.