wordpress snippets last updated   : July 14, 2014
we now have 634 snippets

Add custom post types to archives page

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will let you add custom post types to archives page.

read more

Adding custom post types to wp_get_archives()

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will enable wp_get_archives to display your custom post types. Don’t forget to update your custom post type name on line 06.

read more

Limit archives widget to display only 12 months

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will limit the archives widget to display only 12 months. Replace the add_filter from the first snippet with the second add_filter bellow so this snippet will work for the dropdown archives widget.

read more

Beautifully formated archives by month separated by year

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will display a beautifully formated formatted archives list of months separated by year. Don’t forget to place the second snippet within your wordpress theme in the location you want to display the archives list.

read more

Archives display all post types

wordpress snippet

Adding this PHP code to the functions.php of your wordpress theme will force the archives to display all post types. Be sure to add in your post types.

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