Skip to content

Posting into custom post type #163

@aedensixty

Description

@aedensixty

Posting a new post into a custom post type?

Is this possible or am I just doing it wrong.

I tried 'wp.posts().type('travels').post({' and wp.posts().post({type: "customtype"'.

I also tried using the custom post type endpoint when initialising 'http://site.local/wp-json/wp/v2/customtype'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions