Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress

Building a Wordpress theme

Building a quality, clean-code and functional WP theme is challenging but also hard taks sometimes. Let's say it works fine once you start using it, but what happens once you need to update WP with latest version. What are the most common unwanted effects to WP theme and how to avoid them? I'd like someone with experience on this topic to share their story or give few good tips.

Thank you!

2 Answers

Building a theme that is 100% future proof is going to be tough. What might be a solid function/hook/filter today may not be there in a years time.

The only thing I can suggest is to lookup any function/hook/filter that you are planning to use in your theme in the codex just to check if there are any notices about the function/hook/filter. The notices will have info about what you should use instead.

here is an example of a depreciated function the_author_url

Also if your building a theme for a client don't edit any of the core files as you will end up having to make that change every time you make that change.

And last tip, if your theme relies on plugins, choose plugins that are well maintained by the author.

I hope this helps.

JP Nothard : thanks a lot for the tips!