[php]
<?php if(is_page(16)){ ?>
<img src="<?php echo get_template_directory_uri(); ?>/images/mainImg_<?php the_ID() ;?>.jpg" />
<?php } ?>
[/php]
現在のuser_idを取得
$user_id = get_current_user_id();
現在のdisplay_nameを取得
$user = wp_get_current_user(); $display_name = $user->display_name;
graffiti on the web
この投稿へのコメント
コメントはまだありません。