We can get custom post type by custom category by custom category in many ways. One of method of getting custom post type define below:-
To get the custom post type by custom category in WordPress you need to do something like below code.
$the_query = new WP_Query( array( 'post_type' ='portfolio', 'tax_query' =array( array ( 'taxonomy' ='technology', 'field' ='slug', 'terms' ='wordpress', ) ), ) ); while ( $the_query->have_posts() ) : $the_query->the_post(); // Show Posts ... endwhile; wp_reset_postdata();
How to get custom post type by custom category in WordPress, how to get categories of custom post type in wordpress,how to get category name of custom post type in wordpress,how to get custom post type category list in wordpress
How to use Cloud Scheduler API to submit your sitemap.xml to Google Search Console using a Service Account
Horizontal Live Event Cards with Image and Gradient – React Native
React Native Tabs in Single File and Split Files
React Native List with Grid consisting of Icons and Text
React Native Cart System
Horizontal Live Event Cards with Image and Gradient – React Native
React Native Tabs in Single File and Split Files
React Native List with Grid consisting of Icons and Text
React Native Cart System