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'; } ?> 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo