Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Redact Text in WordPress

Did you ever want to redact some text in your WordPress blog posts? Redaction is the term used for editing text by blacking out sensitive parts of it. In this article, we will show you how to redact text in WordPress showing the user that some text has been redacted but not giving up the text.

First thing you need to do is install and activate the Guerilla’s Redacted Text plugin. The plugin works out of the box, and there are not settings for you to configure.

Simply create a new post or edit an existing one. Delete the text you want to be redacted and replace it with this shortcode:


Now when you preview the post, you will notice blacked out space added to indicate redacted text.

Redacted text blocks in WordPress post

The default size of the blacked out area is six character spaces. If you need a larger redacted text box, then you can use the shortcode like this:

[redacted length="medium"]
[redacted length="large"]
[redacted length="extra"]

Please note that, you will actually need to delete the text you want to hide. The purpose of this plugin is not to hide text, but to show that some text has been redacted.

We hope this article helped you redact text in your WordPress blog posts. You may also want to check out this tutorial on how to show and hide text in WordPress posts with toggle effect.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit – a collection of WordPress related products and resources that every professional should have!

Reader Interactions


  1. Congratulations, you have the opportunity to be the first commenter on this article.
    Have a question or suggestion? Please leave a comment to start the discussion.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.