1// Retrieves the post type of the current post or of a given post.
2get_post_type( int|WP_Post|null $post = null )
1<?php
2
3$args = array(
4 'post_type'=> 'services',
5 'areas' => 'painting',
6 'order' => 'ASC'
7);
8
9$the_query = new WP_Query( $args );
10if($the_query->have_posts() ) :
11 while ( $the_query->have_posts() ) :
12 $the_query->the_post();
13 // content goes here
14 endwhile;
15 wp_reset_postdata();
16else:
17endif;
18
19?>
20