Tag: shortcodes
-
Adding shortcodes to other locations
By default, WordPress only parses shortcodes in the main content area. Suppose you want to use shortcodes (WP-Members or otherwise) in locations other than the body text? Here are some snippets you can add to your theme’s functions.php file to allow the use of shortcodes in the sidebar, comments, and excerpts:
-
Redirect requests to wp-login to a front end login page
Note: If you want an easy way to do this, the Advanced Options extension offers this as a setting. But if you need more control over the process than a simple “on/off” switch, the method described here is a flexible and customizable alternative. The new version of WP-Members 2.7.6 adds a method of picking up…
-
Different contact forms based on login status
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…