Closed funkenstrahlen closed 9 years ago
Hey there, why don't you just try it? Sounds like you need to pass in an array of hashes. Rubypress deep merges any passed in objects.
Ok I try hashes. I am just unsure what they mean with objects
in the docu. I will close this if I managed to get it working :)
in case if someone want the example, the metadata will take array of hashes as follows:
:metadata => [{:key=>"somekey", :value=>"somevalue"}]
I currently try to create new wordpress posts with metadata as described here: https://developer.wordpress.com/docs/api/1.1/post/sites/%24site/posts/new/
It uses the wordpress custom fields: https://codex.wordpress.org/Custom_Fields
However I do not know how to do that with rubypress.
Can you tell me how to do that? Is that even possible with rubypress? I do not understand how wordpress wants the "objects" to be encoded.