peki custom type olan yerlere nasıl ekleyeceğiz? örneğin product diye bir custom type var, onun için nasıl bir kod eklemeliyiz?
functions a ekle :
function yazi_tipi($tip){
global $wp_query;
if($tip == get_post_type($wp_query->post->ID)) return true;
return false;
}şöyle kullan :
<?php if( yazi_tipi(urun) ) { echo "evet urun"; } ?>