php - Div not showing in wordpress -
<?php if (is_user_logged_in()) { echo '<div id="signin-box"> ' . wp_login_form() . ' </div>'; } else { echo 'hi'; } ?>
is i've got. login form working, not being wrapped in div. without else/if statement, works.
does work you?
<?php if (is_user_logged_in()) { ?> <div id="signin-box"> <?= wp_login_form(); ?> </div> <?php } else { echo 'hi'; } ?>