Hack: Password Protected Post With Custom Text

After yesterday’s post, I got to thinking that it would be useful to be able to customize the password protection text on a per-post basis. So not every password-protected post has the same exact same “This content is password protected…” replacement. Sp here is an alternative to that code that also looks for the custom field password_text. If found, then it will replace the standard text with whatever you put in that custom field.

Continue reading “Hack: Password Protected Post With Custom Text”

Hack: Change The Password Protected Text

When you password-protect a post, you get a standard message of “This content is password protected. To view it please enter your password below:” that is difficult to change. But what if you want to do some simple members-only posts every once in a while and send out the password for special posts every week in your newsletter. It could be a nice way to encourage people to sign up for your emails without needing to install a whole membership plugin. You could even use fun words that relate to your topic as passwords.

Continue reading “Hack: Change The Password Protected Text”

Tip: Using Password-Protected Posts

WordPress has the ability to password-protect posts so only those with the password can see the content. You can assign a password to any post you wish to protect. These can be used as a way to keep the public from seeing the content of a post meant for admins, or it could be used as a simple gateway for bits of premium content for a newsletter or social media audience.

Read more

Hack: My Block Form Creator Idea

I am working on a plugin that lets you create forms using only a single new block. You add a block for each form element, and set it to be an input field, text area, drop-down, submit button, etc. It is pretty easy to use and very customizable. But it may be a bit hard to style depending on what your theme already does with form elements. I would love to get feedback on this idea before I move forward.

Continue reading “Hack: My Block Form Creator Idea”

Hack: Moving Comments Manually Without a Plugin

If you rarely need to move comments from one post to another, then it is probably not worth maintaining yet another a plugin just for that purpose. You can use a tool like PHPMyAdmin on your server to edit the comments database directly and simply change the post ID for that comment. It gets a bit trickier if the comment has replies, but it is just a matter of changing all of the reply comments to the same post ID.

Continue reading “Hack: Moving Comments Manually Without a Plugin”