@ryandonsullivan for the love of all things wordpress, please stop using short codes. It wrecks future themes.
— Mike Meulstee (@artisticdork) May 28, 2014
Agreed (mostly)! For inexperienced WordPress users, a theme with a plethora of shortcodes is great. They will let you add all sorts of fancy design features and even add new functionality. I’ve been there. However, most users are likely to change their WordPress theme at some point and if you’re pages and posts are riddled with shortcodes specific to one theme, it will be a major pain in the ass the replace them all. The more content on your site, the more likely you are to miss some. If you only have a few pages and/or posts, then you’re probably fine. I would consider it best practice to use non-theme-specific shortcodes that you know you will continue to use (i.e. Gravity Forms shortcodes). Take the steps now to avoid potential headache tomorrow.
While on the subject of theme-specific shortcodes, you may also want to consider not using theme-specific functions in your functions.php. When you switch themes, you will have to move your functions.php code to the new theme, which increases the risk for errors. Consider placing your functions.php code into its own plugin.
For a more in-depth look at why theme-specific functionality (including shortcodes) is a bad idea, check out Steven Gliebe’s post on avoiding the “theme lock-in effect”.
Rohit Singh says
Thank you so much for letting us know about the short codes and I was really confused for 1 or 2 days whether to use that or not but I made my mind that I will stay away from theme specific short codes.
SEO Arbiter says
Hi Ren,
Interesting. I actually have a heap of sites that recently changed themes but also have a heap of short codes from a previous theme.
I guess I should probably check them out and hope none of them are broken. Thanks for the reminder.
William.
Ren says
No problem, William. Yes, whenever you change themes you really need to comb through all of your content to ensure that you have removed old shortcodes. It really sucks but that’s what happens when a site is built to be so dependent on a theme. Good luck!