dphiffer
Forum Replies Created
-
Forum: Plugins
In reply to: [JSON API] Get the post with the highest ID from a specific categoryHave you tried adding
order_by=ID?
https://wordpress.org/plugins/json-api/other_notes/#3.2.-Content-modifying-argumentsForum: Plugins
In reply to: [JSON API] get_category_posts gives error/no results with post_typeHello,
I set up a local test for this and I couldn’t replicate the problem. Are you sure the portfolio post you’d expect to see there is published?
Thanks,
DanForum: Plugins
In reply to: [JSON API] Method get_post redirects to post's pageHello,
I’m happy to help. A couple things I’d like to know:
1. Is there a URL that illustrates the problem?
2. Have you tried disabling other plugins to see if the problem persists?Thanks,
DanForum: Plugins
In reply to: [JSON API] Json API fetch selected columns from wp_posts tableHi there,
Yes that is possible! There’s an
includeargument that lets you narrow which information gets included. For example:Hope that helps!
DanForum: Plugins
In reply to: [JSON API] invalid json format (H)Which theme is it?
Forum: Plugins
In reply to: [JSON API] Upgrade breaks API pathOh, I just saw your other thread. I’ll look into this…
Forum: Plugins
In reply to: [JSON API] Upgrade breaks API pathWeird, rommelxcastro, could you send me the URL? You can email it to me at dan at phiffer dot org if you’d rather not have it public.
Forum: Plugins
In reply to: [JSON API] How to get post without html tags?Hi jecky, if you want to do this on the server side, you could add an action handler for the post constructor like this:
add_action('json_api_post_constructor', 'strip_json_post_html');function strip_json_post_html($post) {
$post->content = strip_tags($post->content);
$post->excerpt = strip_tags($post->excerpt);
}Forum: Plugins
In reply to: [JSON API] URL redirect me to HomepageThose rewrite rules look pretty standard. If you disable W3TC does that make any difference?
Forum: Plugins
In reply to: [JSON API] URL redirect me to HomepageI don’t think it’s the permalink structure (see: https://mlkshk.com/p/S319). Maybe it’s a server setting? I would check your Apache configuration for mod_rewrite rules.
Forum: Plugins
In reply to: [JSON API] Help in adding xprofile values from buddypress to JSON APISomething like this:
add_action('json_api_post_constructor', 'add_xprofile_fields');function add_xprofile_fields($post) {
$author_id = $post->author->id;
$post->author->xprofile = ...;
}Forum: Plugins
In reply to: [JSON API] Help in adding xprofile values from buddypress to JSON APIHi brillfx, I’m replying to this a bit late, but you should be able to do this using an action hook or a filter. These aren’t very well documented as of yet, but the two you might try hooking into are ‘json_api_encode’ or ‘json_api_[post type]_constructor’.
Forum: Plugins
In reply to: [JSON API] Upgrade breaks API pathYeah, I’ve never been able to reproduce this consistently. And it’s hard to debug without a set of repeatable steps. I’ll try to run through some possibilities, though, it’s something that comes up on the wp-hackers list from time to time.
Forum: Plugins
In reply to: [JSON API] List only 5 childs itemsHi johnesben91, replying late to this but I think this is fixed now. Let me know if you’re still seeing the issue.
Forum: Plugins
In reply to: [JSON API] URL redirect me to HomepageHi razarahil, it looks like ?json=1 doesn’t work either. Is the plugin still enabled? Maybe there’s another plugin doing the redirect?