wordpress snippets last updated   : April 22, 2014
we now have 631 snippets

Replace menu text within the admin sidebar menu

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will replace the word “post” in the admin menu with the word “article”. This snippet however could be used to replace other items within the admin sidebar menu.

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

Change custom post type icon for new and edit post pages

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will change the default icon on the post edit and new post pages. Don’t forget to change the URL on line 9 to the location of your 24px by 24px icon.

read more

Change the custom post type icon for admin menu

wordpress snippet

Adding this snippet to the functions.php of your wordpress theme will create a custom post type products. On line 10 of this snippet we have menu_icon change the URL to the location of your 16px by 16px icon to display in the admin menu.

read more

Hide posts and pages within the admin from users

wordpress snippet

I have had a few projects that required me to create a page that is for template use only. I may need to add shortcode or something to the page. Now since I don’t want my client to edit this page and possibly break things I hide the pages. Adding this snippet to the functions.php of your wordpress theme will allow you to add id’s for each of the posts or pages you wish to hide.

read more

Fix the read more link when using query_posts

wordpress snippet

When using query_posts to customize the query you may find that the “read more…” link no longer functions. Fixing this issue will require you to reset the $more variable. Add the following snippet just before the loop and things will start functioning properly again.

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