• Resolved ygagnon2016

    (@ygagnon2016)


    I’m currently using the free version of the Ivory Search plugin on a Real Estate site that I’ve been developing, and I was wondering if it might be possible for me to extend it’s functionality somehow so that it also searches — and displays results from — an external API (more specifically, .. from the MLS).

    I’m already interfacing with this same MLS API pretty extensively throughout the site, and it would be ideal if we could just customize or extend the Ivory Search plugin so that it interfaces with and returns results from the same API.

    Is this possible at all, .. either in the free or premium version? If so, how might I go about that … preferably without having to modify the plugin directly?

    Thanks,
    — Yvan

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter ygagnon2016

    (@ygagnon2016)

    Yes! Thank you so much!! I’ve updated the Ivory Search plugin to the latest version as you’ve suggested, and it’s working now when I copy over only the is-ajax-results.php file to the root of my child theme folder. Thanks so much for your patience and for working through this with me. Have a wonderful holiday!

    Cheers,
    — Yvan

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You are most welcome here ??

    Thread Starter ygagnon2016

    (@ygagnon2016)

    I have just a quick followup question for you (hope you don’t mind).

    If I wanted to disable AJAX Search, .. which template file(s) would I need to copy over to my child theme folder and modify if I wanted to apply customizations?

    I ask because although I’ve succeeded at applying my customizations to the AJAX search results, I’m finding that it’s slowed things down considerably, and I’m now considering possibly disabling the AJAX search functionality and instead redirecting users to a separate search results page. Please advise.

    Thanks!
    — Yvan

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You can disable it from the search form AJAX option as shown in this screenshot https://imgur.com/a/3yX9cdU

    Thread Starter ygagnon2016

    (@ygagnon2016)

    Yes .. I’m aware of how and where to turn that off in the settings.

    What I’m asking is … which template file(s) would I then need to copy over to my child theme folder and modify if I wanted to apply customizations (if I was to disable the AJAX search results functionality) ?

    Thanks,
    — Yvan

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You don’t need to make any customizations by overriding a template file to disable AJAX search results functionality because you can do it easily from the plugin options as described in my earlier reply.

    Please advise a bit more in detail with your intent If I didn’t understand your question properly.

    Thread Starter ygagnon2016

    (@ygagnon2016)

    But that’s not what I’m asking. This relates to my original question and title .. only I now want to achieve the same thing without the AJAX functionality

    Searching external APIs / data sets in addition to the WP database?

    `I’m currently using the free version of the Ivory Search plugin on a Real Estate site that I’ve been developing, and I was wondering if it might be possible for me to extend it’s functionality somehow so that it also searches — and displays results from — an external API (more specifically, .. from the MLS).

    I’m already interfacing with this same MLS API pretty extensively throughout the site, and it would be ideal if we could just customize or extend the Ivory Search plugin so that it interfaces with and returns results from the same API.

    Is this possible at all, .. either in the free or premium version? If so, how might I go about that … preferably without having to modify the plugin directly?

    Thanks,
    — Yvan`

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    There is only one AJAX template plugin file.

    For other customizations, you can use plugin hooks.

    In your case, you have to use the plugin is_pre_get_posts hook which is the same as the WordPress pre_get_posts hook.

    Thread Starter ygagnon2016

    (@ygagnon2016)

    Ok .. so I guess we’re circling back to your original suggestion (I appreciate your patience, btw). Now perhaps you could help me fill in the blanks here? Assuming that I’d add something like this to my child theme’s functions.php file, how would I append a “Hello World” type string to the search results?

    add_action( 'is_pre_get_posts', 'rpp_retrieve_mls_properties' );
    
    function rpp_retrieve_mls_properties( $query ) {
         // ???
    }

    Thanks,
    — Yvan

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    You have to develop custom code and add it in the blanks there.

    Sorry to tell you but developing custom code for custom functionality is beyond the scope of support that we provide here.

    If you are not a developer then you can consider hiring a developer to develop it for you.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Searching external APIs / data sets in addition to the WP database?’ is closed to new replies.