As much as I love building themes for WordPress, I am much more of a CSS designer than a coder. In order to make theme development easier, I started to build a library of useful code snippets that I could re-use in future projects. Seeing how useful it was, I started looking around for sites with more snippets that I could use. Today, WordPress Tavern published a post with a link that is well worth passing on to anyone who could find short code snippets for WP-theme development useful…
WPfunction.me contains a collection of snippets which you can copy and paste into the functions.php file of your theme to add new features to it. Using a simple interface, you can sort snippets by category and then select the features you want to add. After selecting, you click a “Get my code” button to get all the code you need. Paste the code into your functions.php file, and you are all ready to go.
It is not the largest collection of WordPress-related code snippets I have seen, but the way that features are selected and the code is customized according to the selections that are made, is simply beautiful. Check it out, and if you want more code examples to choose from, move on to the excellent list of code snippets compiled by CatsWhoCode.
This article was written by Andreas
Web designer, writer and the creative engine behind this website. Author of most of the free website templates, along with some of the WordPress themes.