Comment out page and post content using a shortcode.
As of April 2026, TC Comment Out is a WordPress shortcode plugin with 60 active installations and a 4.5/5 rating from 2 reviews. It has been downloaded 5.8K+ times in total. Requires WordPress 2.5+ and PHP 5.3.0+. Available on WordPress.org since 2011. Last updated 5 years ago — may have compatibility concerns. Top alternative: WP Shortcodes Plugin — Shortcodes….
Easily comment out page and post content using a shortcode. Content is commented out using HTML comment syntax, keeping the content available in the “View Source” window of your web browser.
Simply place the opening shortcode [comment] at the beginning of the text you wish to comment out, and the closing shortcode [/comment] at the end.
If you wish to hide the content entirely from view (so that it is not visible in the browser source), set the optional type attribute to “hidden”. Setting the type attribute to “html” will produce the default behavior, but is not required.
[comment]This text will be commented out with HTML comments.[/comment]
[comment type="hidden"]This text will not even be sent to the browser.[/comment]
| WordPress | 2.5+ requiredTested up to 5.4.19 |
| PHP | 5.3.0+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.