Add Captcha to WordPress

To be hon­est, I hate Captcha. How many times have filled in forms and I was greeted with these strange forms? What is that let­ter? Did I type it cor­rectly? Darn! I didn’t. Now I have new strange char­ac­ters that I have to deci­pher. This blows.

So why did I add this to my blog? I had to. I was get­ting tons of emails from strange named peo­ple. I thought they loved my site. I thought I was build­ing a strong fan base with peo­ple that had emails end­ing in ‘pl’. But the sad truth is these peo­ple didn’t care about me. They weren’t even peo­ple. They were unthink­ing and unfeel­ing robots, blindly search­ing pages until they found a form they could fill out. How heartless!

So to stop this, I had to add the dreaded Captcha. The good news is after read­ing this link, it really is simple.

If you need to add Captcha, now you can. Just please don’t tell any­one I was the one that told you because I still want peo­ple to think I hate Captcha.

WordPress has 2 factor Authentication — Just like GoogleAuth

Secu­rity is a cat and mouse game. With each step we take for­ward, the bad guys try to take three steps but it appears the good guys are start­ing to win. Google thought the login process through and they came up with GoogleAuth.

Now Word­Press uses that really smart idea to really make some­one hack­ing into your Word­Press site a very, very, very small possibility.

Good Guys: 1
Bad Guys: 0

WordPress is_page not working when using ‘OR

This is one of those things you run into when your brain dies from cod­ing too much. Com­mon sense runs away and you are left alone in a room bang­ing your head against a wall. I was try­ing to get Word­Press to show some code if a page was not a page with an id of 5 nor a page with an id of 10. I was using the log­i­cal oper­a­tor OR and this post showed the error of my ways. Boolean val­ues break down to a sim­ple true or false answer. It seems sim­ple but if you throw some ‘not’ oper­a­tors before those val­ues, some­thing hap­pens to my brain and I get mega confused.

I’m sure this post will make lit­tle sense to most but I’m mak­ing the post so I don’t do this silly mis­take again. I guess you could call it a self­ish post.

Don’t do this:

1
2
3
<?php
if ( !is_page( 69 ) || !is_page( 38 ) ) {
?>

Do this instead:

1
2
3
<?php
if ( !is_page( 69 ) && !is_page( 38 ) ) {
?>