カスタムフィールドのslug名を取得する


slugはpost_typeで取得できる。

<?php echo $post_type = get_post_type( get_the_ID() ); ?>