This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 11 months, 1 week ago.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › return the search results in an array of post ids
This topic contains 4 replies, has 2 voices, and was last updated by Ernest Marcinko 11 months, 1 week ago.
Hi, is it possible to return the search results in an array of post ids? We would like to see if we can use it in the post__in argument of WP_Query.
Hi,
Well, you are running a live search there – even if there was a way to get those IDs, the search is not yet started during the page load. You could only fetch the post IDs via front-end javascript, then probably run an asynchronous request to send the IDs as query arguments, fetch the data, and replace the widget.
I am not sure if I recommend doing this, unless you have a very strong experience with both back-end and front-end coding, or have a good developer of doing that.
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. |