API RESPONSE

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 weeks, 6 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38507
    Sziget
    Sziget
    Participant

    API RESPONSE
    This is our
    API LINK

    The API is currently showing the content of the post, the date, and a few other things that are not relevant to us. We want to add to the API response the custom fields of the posts (as an object)
    For example:

    API response right now
    POST ID: 545
    post content: x y z
    DATE: 20/7/2020

    Desired API response:

    POST ID: 545
    post content: x y z
    DATE: 20/7/2020
    Custom Advanced Field 1: X Y Z
    Custom Advanced Field 2: X Y Z
    ….
    We bought your plugin just for that – but unfortunately it is not doing the job right now. Where do we do it?

    #38509
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I don’t know if this is possible, but using the advanced title and content fields could do the trick.

    Use the advanced content field to add your custom fields. Then when using the api the $result->asp_data->content field should contain the text fetched from the custom fields. The $result->post_content should still contain the original post content.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.