Ajax is used by wordpress for communication between browser and server. For example, after you login wordpress dashboard, drag a widget onto a sidebar, fill some settings and click the […]

A function in cron.php wp_cron() is hooked to init action to check crons(got from the ‘cron’  option in the wp_options table). if it sees there is a cron that should […]

Today it turns out I  got a big misunderstanding of HTML checkbox. I thought <input type=”checkbox”  value=”1″> will check the box, while <input type=”checkbox”  value=”0″> will uncheck the box. Unfortunately, […]

php require() will die if the included file has a syntax error even the error line is not executed(i.e., within a function that is not called) for example: file1.php <?php […]

How to create/use WordPress sidebar?

We should know first what sidebar is in WordPress. A WordPress page is divided into header, sidebar, content, and footer.   A WordPress page is displayed according to the page […]

How to write a WordPress Widget?

WordPress widget is good re-usable component for developing WordPress sites. You must have dragged and dropped widgets in wordpress admin panel. If you are a wordpress savvy, you may have […]