WordPress Development

How to Get Custom Post Type by Single & Multiple Categories

You can get posts from your custom post type by specific category or multiple categories by using tax_query parameters with your WordPress Query. Note: Whenever we work with a custom post type’s category, this category itself is called a taxonomy and the items inside that category, are called terms. Before moving further, let’s understand the

How to Get Custom Post Type by Single & Multiple Categories Read More »

How to Display Featured Image from Custom Post Type

You can get and display the custom post type featured image by using the_post_thumbnail() function inside the your custom post type loop or templates file. However, If you want to show featured image outside the loop or any other location instead of custom post template file, then you can use get_the_post_thumbnail($post_ID) function. With this function,

How to Display Featured Image from Custom Post Type Read More »