Support » Fixing WordPress » wp php widget max button

  • 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?
    if ( is_user_logged_in() ) {
    echo ‘<div align=”center”>
    <div id=”maxbutton-1-container”>
    Apply for rating
    } else {
    echo'<div align=”center”>
    <div id=”maxbutton-3-container”>
    Apply for rating

    my url is :

    thanks in advance

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