Loop through items created in a custom post type

You Need to create a custom post type template for this and fetch the posts there, You will find details regarding how to create a template file here:Custom Post Type Template Files. Create a page for the custom posts to show and assign the template file created. More details can be found here: https://www.cloudways.com/blog/how-to-create-custom-post-types-in-wordpress/

How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it

Try this one in your theme custom page or debugging page: <?php $args = array( ‘post_type’ => ‘offer’, ‘posts_per_page’ => -1 //show all posts ); $loop = new WP_Query($args); if($loop->have_posts()){ while($loop->have_posts()){ $loop->the_post(); $id = get_the_ID(); $tax = get_the_terms($id, ‘hotel’); print_r($tax); }//endwhile wp_reset_postdata(); }//endif