Title: Gutenberg Block Template
Last modified: June 3, 2019

---

# Gutenberg Block Template

 *  Resolved [visbyweb](https://wordpress.org/support/users/visbyweb/)
 * (@visbyweb)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/gutenberg-block-template/)
 * I’m trying to make a gutenberg block template (the same predefined blocks on 
   every new post I create) for a CPT called Galleri made in Pods. Described here:
   [https://developer.wordpress.org/block-editor/developers/block-api/block-templates/#api](https://developer.wordpress.org/block-editor/developers/block-api/block-templates/#api)
 * function myplugin_register_template() {
    $post_type_object = get_post_type_object(‘
   galleri’ ); $post_type_object->template = array( array( ‘core/paragraph’ ), array(‘
   core/gallery’ ), ); } add_action( ‘init’, ‘myplugin_register_template’ );
 * It works fine on regular posts if I replace “galleri” in the code with “post”,
   but not on the Pod created post type. REST API is activated in Pods so Gutenberg
   is there as it should but not my block template.

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Jim True](https://wordpress.org/support/users/jimtrue/)
 * (@jimtrue)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/gutenberg-block-template/#post-11601698)
 * You should create this as a Bug Report:
    [https://github.com/pods-framework/pods/issues/new/choose](https://github.com/pods-framework/pods/issues/new/choose)
 * That’s the appropriate place to report this as it’s not a ‘support’ issue, it’s
   a bug.

Viewing 1 replies (of 1 total)

The topic ‘Gutenberg Block Template’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

 * [block template](https://wordpress.org/support/topic-tag/block-template/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jim True](https://wordpress.org/support/users/jimtrue/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/gutenberg-block-template/#post-11601698)
 * Status: resolved