wordpress snippets last updated   : April 14, 2014
we now have 629 snippets
category page

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

Exclude pages from admin pages list by ID

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you remove pages from the admin pages list. Just update the list of page IDs within the array.

read more

Return ID if parent page exists

wordpress snippet

This is a great little snippet that will let you return the ID of the parent page if the page has a parent. Just add this snippet to the functions.php of your wordpress theme and your ready to get the parent page ID.

read more

Add post ID to posts, pages admin columns

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will add ID to post and pages admin columns.

read more

Attach images with simple thumbnail selection metabox

wordpress snippet

A little snippet I wrote recently to easily attach images to posts with a simple thumbnail selection metabox. Add the first snippet to the functions.php of your wordress theme. Place the second snippet within the loop of your wordpress theme to display the images in your posts or pages.

read more

Disable content editor for specific page template

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will disable the content editor when a page is using a specific template. Don’t forget to change the name of the template file on line 08 this sample I have submit.php but can be changed to anything.

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