-1, // phpcs:ignore WPThemeReview.CoreFunctionality.PostsPerPage.posts_per_page_numberposts 'post_type' => 'services', // or 'post', 'page' or custom_type 'orderby' => 'date', // or 'date', 'rand''title' 'order' => 'DESC' // or 'DESC''ASC' ); // Get the posts query_posts( $args ); // If there are posts if ( have_posts() ): // Loop the posts while ( have_posts() ) : the_post(); ?>