Change WooCommerce Items Per Page

To change displayed WooCommerce Items Per Page, add this code to any PHP file (end of “woocommerce.php” / your theme functions.php, etc) // Woo commerce 9 items per page add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 9;’ ), 20 );

PHP HtmlEntities for UTF-8 Characters

If you just use simple PHP htmlentities function with one argument, you will notice that when you pass string that contains UTF-8 characters, the result is incorrect leaving you with some incorrect characters on the result. To use it correctly, use this code 🙂 htmlentities($your_string, ENT_COMPAT, ‘UTF-8’);

Quick Adsense Random Align

Quick Adsense is one of useful WordPress Plugin which can be downloaded here http://wordpress.org/extend/plugins/quick-adsense/ It can insert ads to your post content automatically. Here is a hack to make your ads to be aligned randomly left / right AND center / none :

Enabling CodeIgniter $_GET

Here is how to enable CodeIgniter support to $_GET and still able to use the normal “SEO-friendly” URL working together. So you will get a URL like this http://www.example.com/index.php/the_controller/the_function/?some=thing&more=yes First approach is modify your “config.php” and change this line. $config[‘enable_query_strings’] = true; But this is not recommended because on pagination, you will get ugly URL.

Multilanguage Programming with UTF-8 Encoding

Multilanguage non-ASCII site? Sometimes we need to make website that can handle languages which contains non-ASCII characters, for example chinese, russian, french, germany, etc. To handle this, we need to handle the language on 3 parts : on PHP itself, HTML, and on the database (i use MySQL as example here). Basically, we need to… Continue reading Multilanguage Programming with UTF-8 Encoding

Encode dengan Ioncube cara Murah

Ioncube adalah salah satu encoder yg dipercaya “susah” didecode. Karena bukan obfuscator, tapi semacam “compiler” (http://www.ioncube.com). Ioncube sndr harga softwarenya mulai dari $199 untuk versi basic sampai $379 untuk yg versi Cerberus (paling bagus). Untuk para programmer yang ingin melindungi hasil kerjanya, Ioncube sangat disarankan untuk digunakan. Tapi ternyata ada cara murah untuk encode sebuah… Continue reading Encode dengan Ioncube cara Murah

WordPress 3.0.1 Dirilis

WordPress 3.0.1 sudah dirilis. Mari update WordPress kita 🙂 Berita resmi bisa dibaca di http://wordpress.org/news/2010/07/wordpress-3-0-1/