Reply To: qtranslate support and date sorting

Home Forums Product Support Forums Ajax Search Pro for WordPress Support qtranslate support and date sorting Reply To: qtranslate support and date sorting


Ernest Marcinko


Try to disable the relevace sorting on the “Relevance Options” panel. The date/title sorting is only secondary if the relevance is enabled.

I googled for similar issues, and there is a known bug with one of the qtranslates filters, where it does not return the correct url if the permalinks are enabled.

The best way around this is to apply a filter on the search results, like this:

add_filter( "asp_results", "asp_qt_correct_url", 1, 1 );
function asp_qt_correct_url( $results ) {
  foreach ($results as $k=>$v) {
    // Correct the url manually
    $results[$k]->link = qtrans_convertURL( $results[$k]->link );
  return $results;

Put the code above to your themes functions.php file. If the qtranslate documentation is correct, this should solve the issue.

Ernest Marcinko

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