• Hello everybody,

    I may have found a problem for this plugin.

    I wanted to limit the number of posts shown by the plugin, so I put some values like 10, 15, 20 in ” Maximum Results to Display ” option in the back-office.
    But it seems that nothing happens.

    I take a look in the file daves-wordpress-live-search-ajax.php, line 121. That’s here (I think) where is use the value we put in ” Maximum Results to Display “.
    But I don’t know where is $maxResults set up, except at lines 287-288 but $maxResults is not use after that in the DavesWordPressLiveSearchResults call.

    In old version 1.9, we have this line 219 :
    $wp_query->query(array(‘s’ => $_GET[‘s’], ‘showposts’ => $maxResults));
    where $maxResults is well used.

    Can somebody take a look ?

    Thanks

    François

Viewing 1 replies (of 1 total)
  • Plugin Author Dana Ross

    (@csixty4)

    Hi François,

    Great catch! I actually fixed this back in August but have been holding off on releasing a new version until I have a chance to get some unit tests together and hopefully prevent regressions like this in the future.

    In the meantime, you can grab the latest dev version at http://downloads.wordpress.org/plugin/daves-wordpress-live-search.zip

    Please let me know if you find any other bugs. I love getting detailed bug reports like this!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Dave's WordPress Live Search] Maximum Results to Display option problem’ is closed to new replies.