wordpress 下書きの場合、公開済みの場合

<?php if( get_post_status( $post->ID ) == 'draft') { ?>
<!-- 下書き記事です -->
<?php }else{ ?>
<!-- 公開済み記事です -->
<?php } ?>

Comments:0

Comment Form

Trackbacks:0

TrackBack URL for this entry
http://www.otogawa.com/cms/mt-tb.cgi/786
Listed below are links to weblogs that reference
wordpress 下書きの場合、公開済みの場合 from px*blog