wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Add custom field automatically when post or page is publish

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add a custom field to a post or page when published. Don’t forget to update the FIELD_NAME and the CUSTOM VALUE.

read more

Change publish metabox text for custom post type

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you change the text within the Publish metabox for a specific custom post type. This sample is setup for an event custom post type but could be changed to anything you like.

read more

Redirect user to new post when published using wp_redirect

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will redirect a user to the new post or page after it is published.

read more

Update: Create custom post status messages in admin

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you create custom post status messages.

read more

Display published posts between two dates

wordpress snippet

Adding this snippet to your wordpress theme will enable you to display published posts between two dates. You could place this great little snippet within your sidebar or create a custom template to display last years posts.

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