I would like to create a post with wp.posts().create() and assign it the correct post_type, however this does not seem to work with the post_type key. Either using create() or update() doesn't change that value.
That code leads to a post that has the post_type of post and not wprm_recipe. How could I change that value?
I would like to create a post with
wp.posts().create()
and assign it the correctpost_type
, however this does not seem to work with thepost_type
key. Either usingcreate()
orupdate()
doesn't change that value.That code leads to a post that has the
post_type
ofpost
and notwprm_recipe
. How could I change that value?