Duplicate posts in infinity scroll

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.