[デモ会員サイト構築]15. トップページにウィジェットを設定して、会員サイトである事を表示
<?php if(is_user_logged_in()){ ?> | |
<div class="user-name">こんにちは <?php global $current_user; echo $current_user->display_name ?> さん</div> | |
<?php } elseif (is_front_page()) { | |
dynamic_sidebar('top_main_widget'); | |
} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment