Comment submission & navigation redirects to default language

I’ve figured out the solution to my problems. Here’s what I did… Note: This is considering the posts, thus comments, are under the ‘Article‘ post-type, which thus create the permalink such as this: site.com/article/post-name/#comments. Adjustments should be made for other uses. To fix problem #1 & #3: if ( !is_admin() ) add_filter(‘get_comment_link’, ‘my_comment_post_redirect’); function my_comment_post_redirect($location){ … Read more

get_categories only getting categories in the main language

I have a solution if you are using WPML for the multi-language support, i have used this code before. Modified after your taxonomy. <?php //Get categories from current language //Uses WPML Multi-language $terms = get_terms(‘jw_portfolio_categories’,’hide_empty=1′ ); if ( !empty( $terms ) ) { $term_links = “”; foreach ( $terms as $term ) { if( $term->term_id … Read more

Multilingual website suggestions

Will try to relate to this as a question, talking about the merits and such of the solutions. Quite limited, normally it would not change direction, however – you might add some javascript that will dynamically add the dir=”rtl” tags when appropriate You can do that, very high maintenance but might work best, depending on … Read more

Taxonomy templates in a multilanguage site

The templates use the internal name of the taxonomy. These will be the same in all languages. The internal name is the first part in register_taxonomy($taxonomy, $object_type, $args). What your users see is the translated name from the labels. So, no, you don’t have to recreate the templates for each language.