Title: Display error message
Last modified: September 24, 2019

---

# Display error message

 *  [artemis21](https://wordpress.org/support/users/artemis21/)
 * (@artemis21)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/display-error-message/)
 * Hello,
    would it be possible to show an error message in case the user doesn’t
   match the requirements to view the content? If not, could this feature be implemented?
 * Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/display-error-message/#post-11962875)
 * Hi,
 * In your case I would have a **user shortcode** for the _actual content_ and a**
   guest shortcode** with a message: _“You need to be logged in to see this content.”_
 * Have you tried this?
 *  Thread Starter [artemis21](https://wordpress.org/support/users/artemis21/)
 * (@artemis21)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/display-error-message/#post-11964123)
 * Hi,
    that wouldn’t be enough because I’m restricting content based on user ids,
   so, If an user is logged in but still not allowed to see that content he would
   not see the error message because he’s not a guest anymore.
    -  This reply was modified 6 years, 8 months ago by [artemis21](https://wordpress.org/support/users/artemis21/).
 *  [seekvn](https://wordpress.org/support/users/seekvn/)
 * (@seekvn)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/display-error-message/#post-11966042)
 * HiWP Darko
    Meaning I must post 2 shortcode 1. [UAS_guest] [not-matched] is not
   allowed to show this content (this message can change in plugin setting) [/UAS_guest]
   2. [UAS_loggedin] Content for matched users….. [/UAS_loggedin]
 * I think auto detect [not-matched] or [matched].
    If [not-matched] auto show 1.
   If [matched] show 2. Don’t need post 1.
 * Sorry for my bad English
    -  This reply was modified 6 years, 8 months ago by [seekvn](https://wordpress.org/support/users/seekvn/).
    -  This reply was modified 6 years, 8 months ago by [seekvn](https://wordpress.org/support/users/seekvn/).
    -  This reply was modified 6 years, 8 months ago by [seekvn](https://wordpress.org/support/users/seekvn/).
    -  This reply was modified 6 years, 8 months ago by [seekvn](https://wordpress.org/support/users/seekvn/).
 *  Plugin Author [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * (@spwebguy)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/display-error-message/#post-11970672)
 * [@artemis21](https://wordpress.org/support/users/artemis21/) I understand your
   issue but you might be looking for a more complex plugin, like a membership plugin.
   I recommend using our plugin for simpler cases as you can’t really manage your
   members and or create groups, you would have to enter all the IDs manually.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Display error message’ is closed to new replies.

 * ![](https://ps.w.org/user-access-shortcodes/assets/icon-256x256.png?rev=2396607)
 * [User Access Shortcodes](https://wordpress.org/plugins/user-access-shortcodes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-access-shortcodes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-access-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/user-access-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-access-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-access-shortcodes/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [WP Darko](https://wordpress.org/support/users/spwebguy/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/display-error-message/#post-11970672)
 * Status: not resolved