WordPress provides a variety of content with custom post types and custom meta fields. The WP_Query class allows you to fetch almost anything from your WP content. meta_query support has been part of WP_Query since WordPress 3.1 release, in order to fetch content based on certain meta fields. With the help of custom post types and meta fields, you can add and retrieve any type of content. In this article, you will learn the mixing of regular post type with custom post type on a homepage using meta-query.