updated   : May 15, 2012
we now have 588 snippets
By : , on May 15, 2012 9:06 am

Shortcode to display users IP address in posts & pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you use a shortcode to display the users IP address in your posts or pages.

read more
By : , on May 14, 2012 9:00 am

Highlight keywords in search results within the_excerpt and the_title

wordpress snippet

I whipped up this little snippet that you can add to the functions.php of your wordpress theme to highlight keywords in search results for the_excerpt and the_title. A few highlight search results snippets floating around including a great one by Michael Martin. However they require you edit template files so this is my take on Michaels Idea.

read more
By : , on May 11, 2012 9:00 am

Freebie: Postage stamp graphic

freebies
By : , on May 10, 2012 9:00 am

Adjust default sizes for embedded content

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you update the default embed sizes.

read more
By : , on May 09, 2012 9:00 am

Disable theme, plugin editor and plugin, core updates

wordpress snippet

Adding the first line to your wordpress wp-config.php file will disable theme and plugin editor. Adding the second line to your wordpress wp-config.php file will disable plugin and core updates.

read more
By : , on May 08, 2012 9:42 am

Hide update nag within the admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will hide the update nag within the wordpress admin.

read more
By : , on May 07, 2012 9:00 am

Remove inline style from gallery shortcode

wordpress snippet

The WordPress gallery shortcode will add some inline CSS to your document however if I’m like many of you, I would rather use my own. Adding the above snippet to the functions.php of your wordpress theme will disable the default gallery styles from being inserted into the page.

read more
By : , on May 04, 2012 9:20 am

Remove unneeded images / thumbnail sizes

wordpress snippet

Adding some or all of these lines of code to the functions.php of your wordpress theme will effectively remove some of the default images sizes that may be unneeded. Make sure to include both the _w _h for width and height,

read more