WordPress.org

Ready to get started?Download WordPress

Forums

wp php widget + max button (1 post)

  1. dr_figs
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.