Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

content displayed for country

hi i need to create a plugin for wordpress that will show me the content only on the country the user selected in the home page. something like the http://www.samsung.com/it/function/ipredirection/ipredirectionLocalList.html some content is ok for more than one country and some just for one. The translation will be done with wpml. I was thinking of using custom taxonomy as country, an use the filter pre_get_posts to change the query on the web site with the term that the user as chose. do you think is the right way to do it? the important thing is the the url will be my domain.com/us/ for taxonomy us any ideas? thanx