• Thread Starter alexandrubau

    (@alexandrubau)

    I’ve fixed it like so, but I don’t think it’s a good approach.

    $query = $wp_query->query_vars;
    
    $query['post_type'] = 'vehicle';
    
    $loop = new WP_Query($query);
    I don't know if it is the right approach but it works for me.

    Let me know, what do you think.