background preloader

WP Security/Tips/Tricks

Facebook Twitter

Translate a WordPress Theme in 3 Easy Steps. Last updated on Lately, more and more people are asking us how to translate a WordPress theme into a language other than English.

Translate a WordPress Theme in 3 Easy Steps

And with an estimated 2 billion people now online, it’s no wonder. Fortunately, it’s a fairly straightforward process, and I’ve boiled it down into 3 simple steps. This tutorial assumes the WordPress theme to be translated has been localized using the the GNU gettext framework. In other words, the theme is ready to be translated. 1. POT stands for “Portable Object Template,” and a POT file (aka .po file) is basically a list of all the English-language text found within the files of a localized WordPress theme. If you’re using a theme other than a Solostream theme (gasp), check with the theme author to see if they offer a POT file. 2. Once you have the POT file, you’ll need to open it in a program like POEdit, and translate the English language into your preferred language.

Find a list of language codes at WordPress in your Language. 3. Other Helpful Links. Easy PHP Blackhole Trap with WHOIS Lookup for Bad Bots. One of my favorite security measures here at Perishable Press is the site’s virtual Blackhole trap for bad bots.

Easy PHP Blackhole Trap with WHOIS Lookup for Bad Bots

The concept is simple: include a hidden link to a robots.txt-forbidden directory somewhere on your pages. Bots that ignore or disobey your robots rules will crawl the link and fall into the trap, which then performs a WHOIS Lookup and records the event in the blackhole data file. Once added to the blacklist data file, bad bots immediately are denied access to your site. Stupid WordPress Tricks. One of the most popular articles here at Perishable Press is my January 2005 post, Stupid htaccess Tricks.

Stupid WordPress Tricks

In that article, I bring together an extensive collection of awesome copy-&-paste HTAccess code snippets. Four years later, people continue to tell me how much they enjoy and use the content as a bookmarked reference for many of their HTAccess needs. The article was even published in a book on Joomla! Security. This is very inspiring to me, so I have decided to create a similar post for all of the useful WordPress code snippets, tips and tricks that I have collected while working on Digging into WordPress, the new book by co-author Chris Coyier and myself that really “digs in” to all of the awesome ways to get the most out of WordPress. If you are one of the millions of people who use WordPress, this article will help you improve the appearance, functionality, and performance of your WordPress-powered websites. Table of Contents WordPress Shortcodes ↑ [link href=" Press[/link] <! <? <? Tag Archive for [ Php ]