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

Images in search results – sources (take 2)

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Images in search results – sources (take 2)

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11858
    nazarnazar
    Participant

    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.

    #11867
    Ernest MarcinkoErnest Marcinko
    Keymaster

    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.

    #11874
    nazarnazar
    Participant

    Wow, I can’t believe I didn’t notice this.

    Thanks a bunch, you rock!

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