WordPress tip: Force specific pages to be SSL secure

Just add the following snippet to the functions.php file of your WordPress theme and specify the post or page ID desired.

Thanks to Kevin Chard for this recipe! WpRecipes.com

Right or Wrong, Open Source Needs Opinionated Leaders

There is a lot of debate going on right now in the WordPress world about the WordPress Foundation barring all ThemeForest/CodeCanyon (Envato really) authors from speaking at WordCamp events.

I don’t want to rehash the argument here; the best place to get it is in the original post, and the comments on it.

Instead, I want to make a different point: Regardless of whether he is right or not, it’s good for WordPress that Matt makes these bold choices.

WordPress tip: Conditional tag for blog-related pages

Copy the function below and paste it into your functions.php file:

Once done, you can use the function to detect if you’re currently on a blog related page:

Thanks to Nathan for the tip! WpRecipes.com

WordPress function to check if the current post is a custom post type

Simply paste this code into your functions.php file:

Once done, you can use the function as shown below. Please note that the function can be used outside the loop:

Thanks to Jonas Ethomsen for the function! WpRecipes.com

WordPress SEO: Automatically remove short words from the URL

Paste the code below into your functions.php file. Once you saved the file, WordPress will automatically remove short (less than 3 characters) words from the generated permalink.

Thanks to Kevin Chard for this awesome piece of code! WpRecipes.com