phillipadsmith
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API] FIXED: Get all custom fields the right way!I don’t get an error on get_recent_posts, but when I try to also list custom post types, I’mg getting the error (still).
Forum: Plugins
In reply to: [JSON API] FIXED: Get all custom fields the right way!@chris_mcclellan: Hmmmm, I’m getting this error from that code:
Warning: Creating default object from empty value in /wp-content/plugins/json-api/models/post.php on line 286
… which is:
$this->custom_fields->$key->$sub_key = $sub_val;Thoughts?
Forum: Plugins
In reply to: [JSON API] FIXED: Get all custom fields the right way!@chris_mcclellan Any chance you can re-post that snippet somewhere else, as it appears that codepad.org is down.
I’m getting an error with this line:
$this->custom_fields->$key->$sub_key = $sub_val;So I’m curious to see if you’ve made an update to address that.
Forum: Plugins
In reply to: [JSON API] JSON API Co-author Plus PluginIn case anyone else is using the Co-Authors Plus plugin and wants the JSON-API to accomodate multiple authors, here’s a quick hack that will do that:
https://gist.github.com/4126431
Suggestions for improvements welcome.
Phillip.
Forum: Plugins
In reply to: [Co-Authors Plus] Co-author Plus JSON API PluginHey there Daniel,
Many thanks for the double-check. I appreciate it.
Indeed, I was also looking at the plug-in from the perspective of it not getting m/any updates in the near future.
Phillip.
Forum: Plugins
In reply to: [Co-Authors Plus] Co-author Plus JSON API PluginHey there Daniel,
Wondering if you can give this hack a look and let me know if you see anything terribly wrong with it: https://gist.github.com/fe484c0daeeb9933b21e
Seems to do the trick nicely in terms allowing for the co-authors if they’re in use. That said, I’m pretty sure how I’m doing this is not the “WordPress Way,” and I suspect you might have a better suggestion.
Thanks in advance,
Phillip.
Forum: Plugins
In reply to: [Co-Authors Plus] Co-author Plus JSON API PluginYou can define your own controller though, or you could modify the requests you’re making to also request the ‘author’ terms associated with the post.
That’s a helpful pointer, Daniel, many thanks.
Phillip.