This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 6 months, 3 weeks ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › API RESPONSE
This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko 6 months, 3 weeks ago.
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?
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.
You must be logged in to reply to this topic.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |