• Resolved MountainSmoke

    (@mountainsmoke)


    I’ve installed it, but nowhere do I see how to use this plugin.

    By the plugin description, I feel like I should be seeing some area where I can filter out what fields are included in REST API.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author svrooij

    (@svrooij)

    @mountainsmoke did you got it to work already?

    You just take the wordpress url, append the endpoint (like /wp-json/wp/v2/posts ) and then you append ?fields=id,title,link (with the fields you’d like).

    truongpvuet

    (@truongpvuet)

    Hi svrooij,
    Thank you for your nice plugin but i don’t know whether the plugin can solve this problem or can’t.
    This is the response when i get api (WP rest api v2):
    ….
    “title”: {
    “rendered”: “Pho – a traditional Vietnamese food”
    },
    …..
    Can i customize the “fields” param to only return “rendered” content without “title”.
    Many thanks!

    Plugin Author svrooij

    (@svrooij)

    @truongpvuet this is actually a different question. But this plugin doesn’t add fields, apart from my personal opinion about the uselessness of title.rendered. This page describes how to add an extra field with the plaintext value, after that you can select it by using ?fields=id,plaintext

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How do you use this plugin?’ is closed to new replies.