Help understand and create a loop with WP_query

Maybe the hanstholm in $args without the uppercase ?

Also a problem with tax_query

Don’t forget to use var_dump($query) for see what hapening.

<?php $query = new WP_Query( array(
'post_type' => 'hanstholm',          // name of post type.
'tax_query' => array(
    array(
        'taxonomy' => 'kategori',   // taxonomy name
        'field' => 'name',           // term_id, slug or name
        'terms' => 'tilbud',                  // term id, term slug or term name
    )
) ) );
while ( $query->have_posts() ) : $query->the_post();
?>