• This is my $args:

    $args=array(
        'post_status'       => 'publish',
        'post_type'         => 'products',
        'tax_query'         => array(
            array(
                'taxonomy'  => 'product_categories',
                'terms'     => explode(',', $groups_separated),
                'field'     => 'slug',
            )
        ),
        'posts_per_page'	=> 30
    );

    I would like to sort $args by the order of the terms that is being passed to it in $groups_separated

    Is this possible? If so, how would I go about it?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Sort with args from array’ is closed to new replies.