This topic contains 2 replies, has 2 voices, and was last updated by nazar 6 years, 7 months ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Images in search results – sources (take 2)
This topic contains 2 replies, has 2 voices, and was last updated by nazar 6 years, 7 months ago.
Hey Ernest,
I wouldn’t start a new thread, but the other one is now closed to new messages – https://wp-dreams.com/forums/topic/images-in-search-results-sources/
Is there a neat way to apply the code you provided to a certain form only? We’re using several forms in different parts of the website, I’m now wondering how do I change the behavior on per-form basis.
Hi!
Yes, it is possible. The filter passes additional arguments as well, the second one is the search ID. So changing the filter and the function definition will do the trick:
The $search_id variable will no contain the source box ID.
Best,Wow, I can’t believe I didn’t notice this.
Thanks a bunch, you rock!
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. |