0

I want to create an android app for a WordPress blog using WordPress rest api.

For optimization I want to remove content field and some other fields when I get all post to show them in my main list and when user click on a link fetch the content filed from the post link.

Is there any way to remove them?

4
  • I think you could use WP-REST-API-Filter-Items plugin. With the plugin you can define a list of fields you want and you do not have to fiddle with WordPress or PHP.
    – ville6000
    Nov 26, 2015 at 14:22
  • PS! We re not here to teach you. We expect that you know the basics. :-) Nov 26, 2015 at 15:22
  • Yes, you are right, thanks for mentioning that. I keep it in my mind.@PieterGoosen
    – mil
    Nov 26, 2015 at 17:24
  • Wow, Exactly what i want, it is super, even in my little data test my file shrink from 152 to 27 KB, So it can be so effective in real data. can u add an answer so i submit your post as answer? @ville6000
    – mil
    Nov 26, 2015 at 17:25

1 Answer 1

0

I think you could use WP-REST-API-Filter-Items plugin. With the plugin you can define a list of fields you want and you do not have to fiddle with WordPress or PHP

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.