Archive:‘Wordpress’ Category

Mastering WordPress Shortcodes

February 3rd, 2009

sm1

What Are Shortcodes?

Introduced in WordPress 2.5, shortcodes are powerful but still yet quite unknown WordPress functions. Imagine you could just type “adsense” to display an AdSense ad or “post_count” to instantly find out the number of posts on your blog.

 [ READ MORE ] 

Creating a wordpress theme

January 22nd, 2009

wordpress-logo

Step One: Preparing Your Work Area

Prior to diving into the Wordpress code, we have a few things to make sure we have all straightened out and ready to go. For this tutorial, so as not to pick on anyone else, I’ll be using my own blog as an example.

Here’s what we need:
A Design – While some folks undoubtedly code their designs directly into a Wordpress theme, [ READ MORE ]

XHTML to Wordpress

January 19th, 2009

Beginning with PHP for WordPress
First we’ll duplicate index.html and rename the copy index.php. We’re only keeping the original .html file for reference to make sure that the finished PHP operates and looks the same.
Let’s open index.php in our text editor. Right now it’s just a .html renamed .php. Our job is to make make it true PHP.

Go ahead and create some more blank documents in your theme folder. Let’s call them header.php, footer.php and sidebar.php (if you have a side bar in your theme). We’re going to divide the HTML into the major sections and make each section it’s own PHP file to be marked up separately.

[ READ MORE ]

;?>