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

Translate placeholder text in search field

Just as any regular string, you can use <?php esc_attr_e( ‘Your Search term here’, ‘your_theme_slug’ ); ?> So your code for the <input> would look like <input type=”search” class=”search-field” placeholder=”<?php esc_attr_e( ‘Your Search term here’, ‘your_theme_slug’ ); ?>” value=”<?php echo esc_attr( $search ); ?>” name=”s”> WPML, as well as WordPress, uses the PHP get_text() function. … Read more

techhipbettruvabetnorabahisbahis forumuedueduedueduedueduseduseduseduedus