wordpress snippets last updated   : April 14, 2014
we now have 630 snippets

Countdown timer shortcode, display content after specified date

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will let you use a shortcode to place a countdown timer on specific content within your post. Add the shortcode within the second snippet to your post with content you want to display after the specified date. I added a class of event so you can style the display of the message anyway you wish, enjoy!

read more

Append the date globally to the title on posts, pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will append the date to the title of your wordpress posts & pages.

read more

Add the date to a specific wp_nav_menu

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will insert the date into your wordpress wp_nav_menu(). Don’t forget to change MENU_NAME to the name of the menu you wish to add the date.

read more

Capture users last login date and time

wordpress snippet

Adding the first snippet to the functions.php of your wordpress theme will capture a users last login time. Add the second snippet to the location you wish to display the users last login time.

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

Archives list

wordpress snippet

Adding this PHP code to your wordpress theme will display a date based archives list.

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