No category assigned to new posts
-
Hey, thanks for this plugin, it’s going to save me a lot of time adapting wordpress for angularjs.
I had a problem, though. The post is being created, but the category is not being assigned to it. I modified your code somewhat to reflect my category IDs:
$scope.data = { title: form.find('input[name="postTitle"]').val(), content_raw: form.find('textarea[name="postContent"]').val(), status: 'publish', post_category: [ 5 ] }
And here is the resulting JSON that is sent:
Array ( [title] => Not again [content_raw] => Yes [status] => publish [post_category] => Array ( [0] => 5 ) )
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘No category assigned to new posts’ is closed to new replies.