At the moment i have a custom field named "price" to order my posts correctly.
The following already works:
$query_args['meta_key'] = 'price';
$query_args['orderby'] = 'meta_value_num';
$query_args['order'] = 'asc';
The problem is that this is a "recommended" price, the real price needs to be calculated inside the loop.
The question is to know if there is a way or a trick, where we can run the loop, calculate the real price and show the posts based on the real price variable.