Wordpress Hacks

Limit WordPress Posts Text Length Without The Use Of Plugins

Limit WordPress Posts Text Length Without The Use Of Plugins

Sometimes when creating wordpress themes you might want to automatically limit the length of post text that is displayed in the main page post teaser view to make things easier for clients when writing articles. You could use a plugin like limit-post etc but I always find it much easier to contain all these type of modifications within the themes own functions.php file. This little wordpress hack will allow you to limit the displayed post text by a defined number of words on your blogs home page.

Continue Reading…

A Cool Little WordPress Hack To Help Protect Your Blog From Comment Spammers

A Cool Little WordPress Hack To Help Protect Your Blog From Comment Spammers

If you own a WordPress powered website you will most surely have Askimet enabled to help detect and easily manage spammers from posting comments. Askimet is a great plugin that has worked pretty successfully for me on all wordrpess sites that I own or administer. This little wordpress comment hack adds another layer of protection though by looking for the HTTP referrer (the page where the request comes from) and automatically blocks the comment if the referrer is incorrect or not defined.

Continue Reading…