wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Add admin post column with wp_get_shortlink

wordpress snippet

Add the following snippet to the functions.php of your wordpress theme. This snippet will add a new column to the posts screen with an input field containing the wordpress shortlink. I added a little javascript to auto select the text.

read more

Shortlink trick

wordpress snippet

Add this code snippet to your single.php or within the loop of your theme. This will display a text field and when clicked becomes selected for easy copy and paste. Thanks Otto

read more