Custom Post

If text, image, and file types post are not enough for you. You can create your own type with whatever data you need for rendering. To do this, you need to call createPost and pass dataType, a string that defines the type of the post so you can distinguish your new post from others, and data, an object containing whatever data you need for your post.

  1. The dataType parameter should have the custom prefix.

  2. Refer to Post target type for a more detailed explanation of the targetType parameter.

Last updated