Creating post with category doesn't work
-
I am trying to add a new post through the api, but the category part doesn’t work.
based on documentation I need to pass the ‘categories’ arguments as an array object and so far I have tried all of these requests :‘title’ => ‘{‘test’}’,
‘categories’ => ‘array(13)’,————————-
‘title’ => ‘{‘test’}’,
‘categories’ => ‘[13]’,————————-
‘title’ => ‘{‘test’}’,
‘categories’ => [
0 => 13
],but none of them is working and I only get the post with ‘test’ title and the default category (not with the expected category)
I would really appreciate if you could help me with this matter.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Creating post with category doesn't work’ is closed to new replies.