Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I just want plain text from JSON API result #31

Open
rebelholic opened this issue Sep 26, 2015 · 1 comment
Open

I just want plain text from JSON API result #31

rebelholic opened this issue Sep 26, 2015 · 1 comment

Comments

@rebelholic
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants