Close

Account

Documentation

Forum

Menu

Get Video link through JSON API

  • Post count: 15
    bhaskar_kareng
    October 5, 2018 at 8:24 pm #37865

    Dear Adex,

    I have one mobile app for https://nenow.in. I get the data from wordpress using JSON API Plugin.

    In jnews i can make youtube video in place of featured image, by putting the link in “Video” Tab near post title.

    That youtube link i want in json of the post so that i can show the video in my mobile app.

    By default setting in JSON API, i am not getting the video link. Please help me how to do it.

    Let me know if you need any more info.

    Thank You

    Post count: 10693
    Adek
    October 8, 2018 at 2:53 pm #37931

    Hi bhaskar_kareng,

    Please try to add this code below to the functions.php file:

    You can check this article https://v2.wp-api.org/extending/modifying/ for further reading. Let me know if you need further help.

    Thank you

    Post count: 15
    bhaskar_kareng
    October 10, 2018 at 8:41 pm #38071

    Dear Adex,

    It worked nicely.

    Thanks a lot

    Post count: 267
    Ferdy
    October 11, 2018 at 11:46 am #38089

    Glad to hear that bhaskar_kareng, let me know if you need something else in there.

    Thank you

You must be logged in to reply to this topic.