# Add the Author Bio After Posts in Block Themes

> Automatically inserts the Author Biography block after the post content in your block theme's single post template, without editing the template.

- Type: PHP
- Runs: Run everywhere
- Category: [Block Editor](https://wpide.com/library/category/gutenberg/)
- Tags: block-hooks, authors, block-themes
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/block-hooks-author-bio-after-content/

## Code

```php
add_filter( 'hooked_block_types', function ( $hooked, $position, $anchor, $context ) {
    if ( 'after' !== $position || 'core/post-content' !== $anchor ) {
        return $hooked;
    }

    if ( ! $context instanceof WP_Block_Template || 'single' !== $context->slug ) {
        return $hooked;
    }

    $hooked[] = 'core/post-author-biography';

    return $hooked;
}, 10, 4 );
```

## Notes

You can move or remove the inserted block in the Site Editor like any other block. Needs WordPress 6.4+.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Add the Author Bio After Posts in Block Themes" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
