Hi Mike, Hi ossedk,
I’m using WP Job Manager plugin with Listify theme too.
As ossedk, I want to sort listings by rating.
I put this function in the “function.php” file of my theme :
function args_function_rating_dsaw($args) {
$args['orderby'] = 'meta_value_num';
$args['order'] = 'DESC';
$args['meta_key'] = 'rating';
return $args;
}
But now, when I call this function in the “class-wp-job-manager-template.php” file :
public function output_results( $content ) {
if ( '' != $content ) {
echo do_shortcode( $content );
} else {
echo do_shortcode( apply_filters( 'listify_default_jobs_shortcode', '[jobs per_page="5" orderby="rating" show_filters="true"]' ) );
}
}
It doesn’t work at all…
Can you please help me a little and point what I miss ?
I’m totally stuck at this point since days.
Thanks for your answer,
Franklin.