Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › qtranslate support and date sorting › Reply To: qtranslate support and date sorting
Hi!
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:
[php]
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;
}
[/php]
Put the code above to your themes functions.php file. If the qtranslate documentation is correct, this should solve the issue.