This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

API RESPONSE

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38507
    SzigetSziget
    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 MarcinkoErnest 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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.