Programming

Adding Shortcuts to WordPress toolbar

Adding the following short code into your functions.php file will let you add shortcuts to your WordPress toolbar.

Source: Jeff Starr

Display pingbacks/trackbacks count within admin post columns

Adding the following code in your functions.php file will let you display pingbacks/trackbacks count within admin post columns.

Source: InstantShift

Easily embed and share Github gists

Source: Robert O’Rourke

Create a custom database error page

You often noticed the error “Error establishing a database connection.” Well the idea with this short code is to create a custom database error page. Copy and paste the code below in a new file name as db-error.php and save it on your wp-content directory and you are done.

Source: CSS Tricks

Add a “delete” button to WordPress admin bar

The following short code will let you add a “delete” button to WordPress admin bar. All you have to do is to copy and paste the code in your theme’s functions.php file.

Source: WPEngineer

Displaying RSS Feed

Adding the following code will let you display RSS feeds on your WordPress blog.

Source: Dan Gayle

Automatically create meta description from content

On pasting the following code into your functions.php file, it will let you create meta description from content automatically.

Source: Paul

Testing if a plugin is active or not

The following short code will let you track that whether the plugin is active or not.

Source: Cats Who Code

Change the “posts” label to “articles”

Open your functions.php file, paste the code and you will be able to change the “posts” label to “articles.”

Source: Smashing Magazine

WordPress pagination without plugins

Simply add the code to the place where you want to display your pagination and you are done.

Source: Smashing Magazine

Photo Credit: Flickr/mendhak