Forums Forums Search & Filter Pro Duplicate posts in infinity scroll

Viewing 10 posts - 11 through 20 (of 23 total)
  • Trevor
    #188103
    This reply has been marked as private.
    Anonymous
    #188105
    This reply has been marked as private.
    Trevor
    #188184

    As soon as I set the sort order to title, it seems to stop the problem, I think. That suggests that is set to date (or default, which is date), something in your theme interferes.

    Anonymous
    #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 );
    
    Trevor
    #188194

    Could you not do that sort in our Post settings tab instead? I can’t test that as you are editing the form.

    Anonymous
    #188198
    This reply has been marked as private.
    Trevor
    #188202
    This reply has been marked as private.
    Anonymous
    #188218
    This reply has been marked as private.
    Anonymous
    #188226
    This reply has been marked as private.
    Anonymous
    #188228
    This reply has been marked as private.
Viewing 10 posts - 11 through 20 (of 23 total)