dphiffer / wp-json-api

WordPress JSON API
http://wordpress.org/extend/plugins/json-api/
258 stars 181 forks source link

I just want plain text from JSON API result #31

Open rebelholic opened 9 years ago

rebelholic commented 9 years ago

Hello,

I have a problem when making an ionic app similar Blog reader from unity3dindonesia.com using your JSON API Plugin. It will give an unexpected result like my screenshot below when testing on Ionic Serve: jsonapi Its mean JSON result for one ID post not just give plain text but mixed with some plugins already installed on my blog such as Crayon Syntax Highlighter and Jetpack. So How I can exclude JSON result from two plugins like above?

Please check out JSON result one post from my blog: http://unity3dindonesia.com/api/get_post/?callback=JSON_CALLBACK&id=25

Best Regards

TillMatthis commented 8 years ago

You can change "the_content" filter for your output with son. You could add a query_var to look for access from your app and the overwrite the content filter to remove the output of your plugins.