$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Is there a way to create a block template that is not limited to a post type?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Is there a way to create a block template that is not limited to a post type?

matteradmin10PV0评论

So, I have been reading up on block templates and from what I understand, they limit the ability to create them to one per post type. I just need to be able to add groupings of blocks without having to be limited to a single instance of that template per post type. Can you create a block that is a group other blocks so that you can change out the block if needed?

Eg. One of the pages that I have has a dashed divider between a list of stylized file links and video embeds on the left and text details on the right. On another page, the video embed is on left, links on right and the content below, with no dash between the top two. This is all determined by custom fields that were saved in the post meta. Since Gutenberg changed all of that I am working on finding a good solution for migrating to WordPress 5.0.

Any information is appreciated!

Post a comment

comment list (0)

  1. No comments so far