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

Add custom body class for specific pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add a custom body class for specific pages. Add the second snippet to the header.php template replacing your default html body tag.

read more

Force custom post type to be private

wordpress snippet

Adding this PHP snippet to the functions.php of your wordpress theme will force your custom post type to be private by default. Do not forget to change my_post_type to the name of your custom post type. This is a slight change from the source snippet and does not include a password since this is private and not password protected.

read more

Custom admin footer

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will allow you to add a custom admin footer.

read more

Add custom post type to RSS

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will add custom post type of snippet to your RSS feed.

read more

Custom taxonomies

wordpress snippet

Adding this PHP code to your functions.php of your wordpress theme will allow you to create custom taxonomies. By default wordpress has category, tag in this sample we have genre, actors.

read more

Custom post content

wordpress snippet

Adding this to your functions.php file in your wordpress theme will add content after each post. This can be something like a copyright or ad etc.

read more
jqsnipp.com | we just launched jquery snippets website