Search This Site
Tag Archives: best practices
"Where should I put custom functions...in my theme or in a plugin?"
That's a good question. I've seen lots of WordPress tutorials, and even the WordPress Codex, recommend adding custom functions to your theme's functions.php file.
While that method does work, it can also cause problems when you change your theme to something else. The new theme won't have that code in its functions.php file, and your custom functionality will just...you guessed it...stop functioning.