WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form (1 post)

  1. simoncpage2
    Member
    Posted 6 years ago #

    I am using contact form 7 plugin which works great. However how can I add an if else statement:

    If (user is logged in)
    <contact form 1>
    else
    <contact form 2>
    End if

    Contact form 1 requires an email and name entered. Contact form 2 requires no name or email.
    (I would need to be able to get the logged in user email / name? and add it to the message tag - is this possible?)

    Any help appreciated - Thanks
    S

Topic Closed

This topic has been closed to new replies.

About this Topic