Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Tag not passing through anymore (GBP 2.1)

  • Hello!

    I do have an issue with the latest update.
    The tags does not work inside the native blocks anymore.

    For example: html tags is not allowed inside GB text block. Solution was to create a custom html block, and write this inside:
    <span>Last updated <time datetime="{{post_date dateFormat:Y/m/d|type:modified}}">{{post_date dateFormat:Y/m/d|type:modified}}</time></span>

    I did this because I need to have the <time> element.
    This worked until this update. Is there any filter to allow the pass through the tag?

  • Hi there,

    yes, you can use the generateblocks_dynamic_tags_allowed_blocks filter hook. Here’s an example:

    
    add_filter( 'generateblocks_dynamic_tags_allowed_blocks', function( $blocks ) {
        $blocks[] = 'yourprefix/block-name';
    
        return $blocks;
    } );
    
  • Works perfect! Thank you!

  • You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.