multi-language multi-site with REST API
Yes, WPML works well with multi-site and also with the WP-REST-API (even without further plugins).
Yes, WPML works well with multi-site and also with the WP-REST-API (even without further plugins).
Yes, the menu can be translated, and, yes, it will be shown in all languages. Does your menu use the WordPress 3 menu feature? If yes, the video here explains how to setup the translation: http://wpml.org/2010/07/wpml-1-8-0-with-multilingual-menus/
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
The absolute best plug in for this is WordPress Multi Lingual (WPML). I have used this on multiple sites, it works like a charm!.. and it provides excellent documentation for custom theme builders 🙂 Are you using a free theme? a paid premium theme? or are you building you own theme? If you are building … Read more
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
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
This is quite a lot of work. I don’t think you can code that in a reasonable amount of time. You could use a multi-site setup and a plugin to map single posts and pages as language alternatives to each other. The plugin Multilingual Press does exactly that and all the other points you listed. … Read more
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.
I am vaguely aware that it has something to do with the way WordPress is initialized. I know WPLANG can’t be changed on the fly. It’s how PHP works: You can’t change an already defined constant. But there’re filters for that. The following plugin is a sketch that you could use and try to see … Read more
Set language from url?