• Hello,

    I want to write a little php if else statement that shows a dynamic line of text above the comment form that shows whether the user is logged in or not(users are required to register and login to comment).

    if

    the visitor is logged in

    display: you are logged in as whoever

    else

    You must login or register to leave a comment.

    Someone please help me with this. I’m a heck of a lot better with xhtml and css than I am with php.

    Thanks in advance,

    Will

Viewing 2 replies - 1 through 2 (of 2 total)
  • The classic theme does that. The default theme does that. All you have to do is to look how they do it.

    Thread Starter wmarple

    (@wmarple)

    Duh, thanks for the smack upside the head X). Sorry, I completely new to wordpress.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with Conditional function’ is closed to new replies.