PHP Code in XML import
-
How can i put the PHP code which importing XML. I want to show Button1 if user is logged in or Button2 if user is not logged in.
Code that i am currently trying on my machine.
<?php if ( is_user_logged_in() ) {
echo ‘<input class=”register” type=”button” value=”Register Now” />’;
} else {
echo ‘<input class=”Apply” type=”button” value=”Apply” />’;
} ?>CLick here to view the issue on my website
The topic ‘PHP Code in XML import’ is closed to new replies.