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)

This topic contains 2 replies, has 2 voices, and was last updated by nazar nazar 5 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11858
    nazar
    nazar
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #11874
    nazar
    nazar
    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.