Computer Program -4

NO Follow WordPress Tag Cloud

The following snippet will result in no following WordPress Tag cloud. All you have to do is to add the snippet to your theme’s functions.php.

Expire Protected Post Cookie With Session

You need to set the time of 0 in setcookie() to your theme’s functions.php template. Setting the time will let you forces the cookie to expire the session.

Source: Drew Jaynes

Display avatar for currently logged in user with get_avatar

The snippet will let you display the currently logged in users avatar in your theme.

Prevent access to wp-admin

Adding this snippet to your functions.php will redirect subscribers away from wp-admin to the home page.

Source: Flowdrops.com

Hide login errors

The code will disable the login errors that are displayed to users.

Page excerpt

The snippet will add excerpts for pages. All you require is to place the following code in your themes functions.php file and you are done.

Reset your password

This would be a biggest nightmare for you if not able to reset your password especially when you can’t use the “forgot password” function. Insert this snippet into a phpMyAdmin Sql-window.

Image Custom Field

If you want to call the custom field for an image source, then use the following snippet.

Add a Dashboard Widget

As soon as you login into your WordPress Dashboard, the first thing you will notice that it has been filed with number of widgets. Using this code will allow you to add your own widgets, just add this code to functions.php.

Photo Credit: Flickr/hackNY.org