wordpress snippets last updated   : October 6, 2014
we now have 641 snippets
category posts

No excerpt available, display default message

wordpress snippet

Adding this snippet to your wordpress theme will allow you to display a default message when no excerpt has been added.

read more

Facebook open graph snippet to set default image

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will allow you to specify Facebook Open Graph information on your WordPress posts. Allowing you to specify which image should be displayed when sharing your article on Facebook among other things.

read more

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

Limit number of classes when using post_class

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you limit the number of classes displayed when using post_class, Yes this only works if you are using post_class() within your theme enjoy.

read more

Add custom post types to archives page

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add custom post types to archives page.

read more

Shortcode with micro formatted loop, meta, category, pagination

wordpress snippet

Here’s a neat little wordpress shortcode that allows posting of individual blog posts based on ID, latest number of blogposts from a certain category or all categories, optional pagination, optional excerpt or full content showing and optional meta.

read more