Computer Program -2

Change WordPress “from” email header

Adding the following shortcode will let you use your real name or username instead of by default set WordPress email address which looks like as WordPress@yoursitename.com.

Source: KeenTricks

Redirecting your homepage to the first post

Simply paste the code to your site’s homepage file (mainly it is index.php file) and you will be able to redirect your homepage to the first post.

Source: Ashton Sanders

Automatically add Twitter and Facebook buttons to your posts

Adding the following shortcode to your functions.php file will let you automatically add Twitter and Facebook buttons to your posts.

Source: Dev7Studios

How to automatically add a search field to your navigation menu

On copying the code to your theme’s functions.php file you will be able to add a search filed automatically to your navigation menu.

Source: Ronald

How to get category slug using category ID

Adding the following code to your theme’s functions.php file will let you get category slug using category ID.

Once done, you can call the function as shown below:

This will display the slug for the category with the ID 5.

Source: Ken Rosaka

How to count your blogroll links

Simply paste the following code where you want the count to be displayed and you will be able to count your blogroll links.

Source: Jeff Starr

Photo Credit: Flickr/hackNY.org