wp php widget + max button (1 post)

  1. dr_figs
    Posted 3 years ago #


    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 : smallbusinessrating.org

    thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.