• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Shortcodes » Different contact forms based on login status

Different contact forms based on login status

Chad Butler · Mar 24, 2012 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

This is an demonstration of how to create different contact forms based on the user’s login status. This is a nice way to offer a specific contact form for users that are logged in and a different for for users (visitors) who are not logged. That also makes it easy to use different subject line prefixes so as to prioritize email responses. This is the same method that I use on this site.

This process makes use of the WP-Members login status shortcodes. While this particular example uses the Contact Form 7 plugin, it could be used in a variety of different ways. That’s up to you.  This is just an example of how it can be used.

Use of the login status shortcode allows for other shortcodes to be used within the status shortcode.

Here is what I use on this site:


[wpmem_logged_out]This contact form is for general information. It is not for support questions and any plugin questions coming through this form are generally ignored. If you are a registered user of this site, you should login to use the Priority Contact Form, or better yet, post in the Support Forum.

If you are not yet a registered user of this site and would like to receive priority support, register here.

[contact-form-7 id="555" title="General Contact" /]
[/wpmem_logged_out]

[wpmem_logged_in]Priority Contact Form for Registered Users:

[contact-form-7 id="123" title="Priority Support" /][/wpmem_logged_in]


NOTE: for the id and the title on the Contact Form 7 shortcodes, you should put the values that correspond to your contact forms. Shortcodes in the example are bracketed using HTML so they will display since both WP-Members and Contact Form 7 are used on this site. If you copy/paste this example, you will need to replace the HTML code with actual shortcode brackets around all of the shortcodes.

To make this more usable on the admin side, I specify different subject line prefixes in the email so that I can easily filter and differentiate between the emails that are coming from each form. That makes it easier to prioritize. I use a subject prefix of “PRIORITY SUPPORT:” for the logged in (site members) contact form and “Site Visitor:” for the visitor’s form. That way I can quickly filter and prioritize responses to emails. You should do what works best for you.

Shortcodes contact-form-7, shortcodes, status

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy