wordpress snippets last updated   : April 22, 2014
we now have 631 snippets
category functions.php

Change the author slug, URL base

wordpress snippet

Adding this to the functions.php of your wordpress theme will change the default mysite.com/author/name to mysite.com/profile/name, however you can change this to user or anything that you would like.

read more

Post is older than

wordpress snippet

Adding this first block of code to your functions.php will allow you to check the age of a post to see if it is older than a set number of days. Great if you want to display some some information related to the post after set number of days or even stop displaying the post altogether.

read more

Shortcode to embed google trends graph in posts and pages

wordpress snippet

This Google trends shortcode will embed a graph of any comma separated query you enter to display a trend over time. Make sure to add a + between multiple words that are part of a single query. By default the geolocation is set to United States so change geo praram for another location.

read more

Exclude pages from admin edit pages list

wordpress snippet

This is a great little snippet that will exclude pages based on the the ID from the admin pages list. Just add this snippet to the functions.php of your wordpress theme and update the array with the page ID’s you wish to hide. Please note this does not stop a post from being editable this snippet only hides the page from view.

read more

Force specific pages to be secure, ssl, https

wordpress snippet

You can easily force specific pages to be secure in wordpress using the following simple little snippet. Just add the following snippet to the functions.php of your wordpress theme and specify the post / page ID desired.

read more

Remove / unset URL field from comment form

wordpress snippet

Removing the URL field from your comments form is a simple snippet just add this code to the functions.php of your wordpress theme to remove the URL / website field.

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