WordPress get post type slug by category Post Views: 1,649if( get_post_type( get_the_ID() ) == 'projects' ) { //enter code for this post type }Related posts:WordPress WP_Query() result posts object to an arrayList All Post TypeWordPress thumbnail default size 預設縮圖尺寸表$wpdb get SQL string 取得mySQL查詢字串