You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2018. It is now read-only.
I was trying to create post with additional fields (fields were already defined on wordpress), but those fields wasn't saved on wordpress site.
Code which I was trying to execute is
NSMutableArray *array = [NSMutableArray array];
[array addObject:@{@"firstname":@"Krzysztof"}];
[array addObject:@{@"lastname":@"Fajks"}];
data[@"custom_fields"] = array;
data[@"post_type"] = @"rfuser";
data[@"post_status"] = @"publish";
[self.wpApi publishPostWithDict:data success:nil failure:^(NSError *error) {
NSLog(@"Error %@", error);
}];
I'm not sure, what is wrong because request generated from this library seems to be correct.