Title: Shortcode negation
Last modified: November 5, 2021

---

# Shortcode negation

 *  Resolved [przembar](https://wordpress.org/support/users/przembar/)
 * (@przembar)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/shortcode-negation/)
 * Hi!
    As described on page: [https://lifterlms.com/docs/shortcodes/#lifterlms_hide_content](https://lifterlms.com/docs/shortcodes/#lifterlms_hide_content)
   I can hide text from not members:
 *     ```
       [lifterlms_hide_content id="1"]
       This will only display to a user with access to the post with an ID of 1.
       [/lifterlms_hide_content]
       ```
   
 * How about hiding text for member, like negation:
 *     ```
       [lifterlms_hide_content not id="1"]
       This will ONLY display to a user WITHOUT access to the post with an ID of 1.
       [/lifterlms_hide_content]
       ```
   
 * So I can have different text only members and all other users.
    -  This topic was modified 4 years, 7 months ago by [przembar](https://wordpress.org/support/users/przembar/).

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

 *  [Thomas Patrick Levy](https://wordpress.org/support/users/thomasplevy/)
 * (@thomasplevy)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/shortcode-negation/#post-15043416)
 * Hey there [@przembar](https://wordpress.org/support/users/przembar/)
 * If you’re using the block editor you can do this without shortcodes by using 
   block-level visibility settings: [https://lifterlms.com/docs/using-block-visibility-settings/](https://lifterlms.com/docs/using-block-visibility-settings/)
 *  Thread Starter [przembar](https://wordpress.org/support/users/przembar/)
 * (@przembar)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/shortcode-negation/#post-15045620)
 * Thanks for answer. Unfortunately I use HTML that’s why I’m asking about shortcode
   😀
 *  [Toyin](https://wordpress.org/support/users/jnr4u2/)
 * (@jnr4u2)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/shortcode-negation/#post-15045797)
 * Hi [@przembar](https://wordpress.org/support/users/przembar/)
 * Unfortunately, LifterLMS does not have a way to do that at the moment.
 * There may be plugins that can help achieve this but I do not know of any off 
   the top of my head.
 * Regards,

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

The topic ‘Shortcode negation’ is closed to new replies.

 * ![](https://ps.w.org/lifterlms/assets/icon.svg?rev=2034507)
 * [LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes](https://wordpress.org/plugins/lifterlms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lifterlms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lifterlms/)
 * [Active Topics](https://wordpress.org/support/plugin/lifterlms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lifterlms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lifterlms/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Toyin](https://wordpress.org/support/users/jnr4u2/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/shortcode-negation/#post-15045797)
 * Status: resolved