Display WordPress Archive Lists By Specific Year or Month

By default, wp_get_archives can not passes year parameter on the argument. In this tutorial I will show you how to create a filter for wp_get_archives function so can be filtered by specific date, year or month.

Suspicious PHP Code In My WordPress Theme File

Recently I got my site not working. It seems there is an error in my functions.php “Parse error: syntax error, unexpected ‘}’ in /home/x/public_html/wp-content/themes/takien-theme-blue/functions.php on line 317″ I go to that line using my favorite Editor, and surprisingly I found this strange code that I never created before:

WordPress Reserved Global Variables, You Should Avoid Define A Variable Using These Name

Global variable is a variable that is accessible in every scope, in PHP it works ONLY for the same page and the file that are included after. However, some predefined variables, known as superglobals are always accessible in whole site. Both of global and superglobal variable can be redefined or overwrite it’s value. When developing [...]

Prevent Spammer to Register Using The Same Gmail Email (Duplicate User Accounts)

Gmail,  Gmail is …, ah I really don’t need to explain this. So, continue reading The Facts Gmail ignores . (dot) in username If you have Gmail account example@gmail.com, actually you also have ex.ample@gmail.com, exam.ple@gmail.com, and so on until all characters in the username are separated with dot. These all have same inbox, and you can [...]

Styling Scrollbar to Look Like Facebook ScrollableArea Using jScrollPane

What Is Scrollbar? According to Wikipedia, A scrollbar is an object in a graphical user interface (GUI) with which continuous text, pictures or anything else can be scrolled including time in video applications, i.e., viewed even if it does not fit into the space in a computer display, window, or viewport. It was also known [...]

Creating a WordPress-Alike Hook For Your Own CMS

Probably you have known this, WordPress code is pretty good, especially when compared with other CMS or what we ever found on PHP tutorials. The one I like is how WordPress uses hooks.   If you ever created WordPress plugins, you may experienced that you don’t need to modify any of core code just to add [...]

Searching File Within Directory Recursively Using PHP

Recently I had to find my file stored somewhere in my server. Although I can do this easily using the built-in feature in cPanel File Manager, but what I need is to search file programaticallyusing a script. So, I created this function. The function accepts three parameters: $dir (string), absolute path of the directory to [...]

Sekilas Review Windows 8 Developer Preview

Windows 8 Developer Preview telah diluncurkan beberapa hari yang lalu oleh Microsoft sebagai beta test terhadap Windows 8. Microsoft mengeluarkan preview ini untuk mendapatkan feedback dari penggunanya sebelum akhirnya mereka mengeluarkan Windows 8 versi final. Karena ini versi preview, jadi wajar bila masih terdapat kekurangannya. Namun demikian saya tetap penasaran dan mencoba mendownload dan menginstalnya. [...]

WordPress Plugins

Here is the list of WordPress Plugins I ever created: 1. Word Replacer 2. WP Spry Menu 3. WP Editarea 4. WP Dropdown Posts

Cara Memasang Komentar Disqus di WordPress

Dulu saya males pake Disqus dan tidak tertarik untuk mencobanya. “Aplikasi pihak ketiga gini lambat, dan ujung-ujungnya nitip brand di web kita”, begitulah pemikiran saya waktu itu. Sampai pada suatu hari ketika bikin web orang, saya stuck ketika minta sistem komen yang bisa login pake Twitter dan Facebook. Karena tidak ingin membuang-buang waktu, maka saya [...]