Shortcode, vs blocks, vs templates – what would you do for choosing or creating custom post data in editor?

Say you have some custom post type. Call it my_type.

Now say in Gutenberg, you want to either

a. Insert some data into a my_type post from an existing instance of another_type where the inserted block has template/styling

or

b. Insert some data into my_type that will create the custom another_type post instance.

What is the most sensible methodology? You can imagine doing this with a forum post. In Gutenberg you want to insert some reusable block with styling that displays certain forum topic data. Or you want to insert a block that creates the forum topic in the first place.

As it is now, I am just creating the forum topic then using a shortcode with topic id, but can’t help but wonder if there is a better way?

thanks!
Brian

Read more here:: Shortcode, vs blocks, vs templates – what would you do for choosing or creating custom post data in editor?

Leave a Reply

Your email address will not be published. Required fields are marked *