Title: Shortcode for adding comments
Last modified: August 30, 2016

---

# Shortcode for adding comments

 *  Resolved [MarkPGray](https://wordpress.org/support/users/markpgray/)
 * (@markpgray)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/)
 * I hope I didn’t miss this in the documentation but is there a way to add comments
   via shortcode? i.e. `<!-- my nice comment -->`
 * Cheers Mark
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

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

 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230675)
 * Do you mean a shortcode that would generate an HTML comment? It doesn’t exist
   currently – it looks like that could be included in the HTML blocks module.
 * Just curious, is there an advantage to using a shortcode instead of direct HTML?
   I guess to make the comments visible in the visual editor?
 *  Thread Starter [MarkPGray](https://wordpress.org/support/users/markpgray/)
 * (@markpgray)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230677)
 * I have a situation where I wanted to add a comment before the main shortcode 
   using the visual editor to make things clear for the person editing the post.
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230678)
 * I’m imagining something like:
 *     ```
       [--  your comment here  /--]
       ```
   
 * That’s using the fact that `-` is a valid character for a shortcode name.
 * Would that work for you?
 *  Thread Starter [MarkPGray](https://wordpress.org/support/users/markpgray/)
 * (@markpgray)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230683)
 * Perfect. Thanks
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230933)
 * Hello, I added this feature in the newest update. It works like this:
 *     ```
       [*] Your comment here [/*]
       ```
   
 * The shortcode doesn’t display anything on the frontend, so you can leave comments
   inside the visual editor.
 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230965)
 * Hello,
 * I had to change this shortcode to make it compatible with the visual editor in
   WP 4.3. Using `[*]` was nice and short, but it’s not a valid character for shortcodes
   anymore. Please use `[note]` instead.
 *     ```
       [note] Your comment here [/note]
       ```
   

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

The topic ‘Shortcode for adding comments’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/shortcode-for-adding-comments/#post-6230965)
 * Status: resolved