• Resolved gab_wp

    (@gab_wp)


    Hello,

    I d like to use WP-Advanced-Search. I read to run this search engine you have to write <?php WP_Advanced_Search(); ?>. in your template file. This function display the result of the search. However I d like to know if I can call a function which only return me the result of a search in an array. I could use those datas in my template in any way I want
    Somthing like that

    $resultSeach = WPSearchEngine ($arg);
    foreach ($element in $resultSeach)
    {
    ...
    }

    Thanks for your help

    https://www.ads-software.com/plugins/wp-advanced-search/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mathieu Chartier

    (@evigeo)

    Hi,
    The plugin is not planned to insert the results into an array but it’s a good idea. I think (hope) it’s possible with my actual code.

    Thread Starter gab_wp

    (@gab_wp)

    Hi Mathieu,

    Thanks to answer me back. Maybe you have a documentation for the api plugin where I could some class and method for my needs.

    Thanks for your help.

    Plugin Author Mathieu Chartier

    (@evigeo)

    If you want to catch each result in an array, you have to work on the PHP class (file : moteur-php5.class-inc.php) or on the file WP-Advanced-Search-Function.php.

    I tried to do this but it’s complicated… :S

    Thread Starter gab_wp

    (@gab_wp)

    Hello Matthieu,

    Thanks for the answer. I don’t know if I have time to developp on the plugin but if I do it I warn you.

    Don’t hesitate to warn me if you plan to develop this feature. I’ll check this forum and your plugin homepage.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘get the results of a search’ is closed to new replies.