This guide walks you through in getting the Facebook Credits Sample running in test mode. 1. Download the official sample code from: 2. Read the overview. 3. Copy the files into your server into a subfolder (your server must support PHP): – callback.php – index.php – xdreceiver.html 4. Create a test application. Fill out […]

One of the things that I played around several years ago was the GD library, which allows image manipulations and creations on the server-side. I have always want to automate repetitive things such as creating glossy-icons for web-pages.  Basically I want to automate the process of converting: From this To this: I wasn’t sure if […]

In this part of the turorial, we will explore how to extend WordPress forms to show new fields in Custom Post Types that we created in the previous part of the tutorial. The previous part of this tutorial can be read here: This part of the tutorial will show you how to create custom […]

Custom Post Types functionality is added in WordPress 3 (it was present in 2.9 but with limited featrues). Broadly speaking, with Custom Post Types, your Posts (also commonly referred as blog-enty” or “blog-post”) are no longer limited to the two predefined types of Post and Page and most likely you end up with the standard […]

In this example, we will be adding a watermark (logo) into an image using PHP and GD library. For introduction to PHP GD, visit this post: /blog/2010/03/using-php-gd-to-create-images/ This is the logo image that I will be using: This logo is a PNG file with alpha channel. With transparent images, using PNG is better than using […]


PHP is a powerful scripting language and there are many powerful plug-ins available. One of them is GD, which can be used to create images on the fly. GD, originally developed by Thomas Boutell by far is the most popular image-processing library for PHP (it is also available for other languages like Perl). GD has […]

I am using WordPress 2.9 for this example: Open Appearance -> Editor. Locate the php file that is being used to display categories.  It’s either Archieves.php or Categories.php.  You can echo something and open up a category page in the browser to see which one is being used. You can also edit the file in […]

There are built in library to do RSS Feeds, but won’t it be nice to build our own and be able to customize the output.  PHP 5 or later is needed for this method because it uses SimpleXML. Below are some useful links that we use in this tutorial. SimpleXML overview and example: SimpleXML […]

There are several method to parse XML data using PHP, one of them is using SimpleXML. SimpeXML requires PHP 5 or better but is one of the easiest way to parse XML in PHP, you can use object notation to refer to nodes. The SimpleXML API documentation is here: Example 1 Here we show […]

Here are some plug-ins that enables execution of PHP code within a WordPress post (I am using WordPress 2).  Read this if it doesn’t work: For these to work, it’s best to use the HTML editor when editing posts, not the Visual editor.  I also find that toggling ftom HTML to Visual […]