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

Sander de Wijs
PLUS
Sander de Wijs
Courses Plus Student 22,267 Points

Tip for multi language WP sites

Just a quick tip for something I learned developing a multi language Wordpress site using the Stella translate plugin. This plugin does a great job translating posts, pages and menus. However, when you use gettext tags in your template, Stella doesn't translate them.

After searching around for a while, this post helped me a great deal to solve the issue. You basicaly add a new function to Stella that makes WP recognize it when you switch language. At the bottom of the thread I posted an improved version of the code.

It cost me a couple of hours to figure this one out, so maybe I can save someone a bit of time posting this.