• Hi,

    I want to insert a button that I created using max-button in the sidebar.
    I want this button to redirect to a page or other depending if the user is loged in or not. I decided to use wp php..but it does not work completly…
    what is the mistake here?
    <?php
    if ( is_user_logged_in() ) {
    echo ‘<div align=”center”>
    <div id=”maxbutton-1-container”>
    Apply for rating
    </div>
    </div>’;
    } else {
    echo'<div align=”center”>
    <div id=”maxbutton-3-container”>
    Apply for rating
    </div>
    </div>’;
    }
    ?>

    my url is : smallbusinessrating.org

    thanks in advance

  • The topic ‘wp php widget max button’ is closed to new replies.