Forums › Forums › Search & Filter Pro › Duplicate posts in infinity scroll
- This topic has 22 replies, 2 voices, and was last updated 6 years, 2 months ago by Anonymous.
-
Anonymous(Private) September 12, 2018 at 12:49 pm #188189
Hi Trevor,
We are getting close 🙂
It’s important that they are properly ranked. That’s why I used following hook to change the order:
/* Change query Search and filter pro */ function filter_function_name( $query_args, $sfid ) { if($sfid==1710) { //modify $query_args here before returning it $query_args['meta_key'] = 'prioriteit_mandaat'; $query_args['orderby'] = 'meta_value_num'; $query_args['order'] = 'ASC'; } return $query_args; } add_filter( 'sf_edit_query_args', 'filter_function_name', 20, 2 );
-
AuthorPosts