WPML : how to pick a featured image only once for different languages?
You’ll find the answer here : http://wpml.org/2011/05/new-plugin-wpml-media-translation/
You’ll find the answer here : http://wpml.org/2011/05/new-plugin-wpml-media-translation/
On the bottom of comments.php I use the following code: <?php comment_form(array(‘comment_field’ => ‘<p class=”comment-form-comment”><label for=”comment”>Comment</label><textarea id=”comment” name=”comment” cols=”45″ rows=”8″ aria-required=”true”></textarea></p>’, ‘comment_notes_before’ => ‘<p class=”comment-notes”>Your email address will not be published. Required fields are marked *</p>’, ‘comment_notes_after’ => ”, ‘title_reply’ => ‘Leave a Reply’, ‘title_reply_to’ => ‘Leave a Reply to %s’, ‘label_submit’ => ‘Post comment’, … Read more
You could use get_comments() instead. The code in this forum post gives an example of how you’d do that: <?php $recent_comments = get_comments( array(‘post_id’ => $newest_post_id,) ); foreach ($recent_comments as $comment) { ?> <?php $comment_id = get_comment($comment->comment_ID); $author = $comment_id->comment_author; $commentdate = $comment_id->comment_date; $content = $comment_id->comment_content; ?> <p><?php echo $author; echo $commentdate;?></p> <p><?php echo $content;?></p> … Read more
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
Hardcoding links to wp_nav_menu
Archive page for a custom post type using WPML
If you intend the process to be portable, then don’t use the database. Modify the theme to reply with either raw-html or php-serialized data and just do an http crossload. If this is a one-time install and you don’t care at all about portability, then just hardcode the query. I’ve done both at one point … Read more
I’ve solved the problem. As I was boiling my head to find another approach, I’ve seen that stato_ru column was the only one not having utf8_generic_ci encoding…
You should edit the theme and add the use of translation API https://codex.wordpress.org/I18n_for_WordPress_Developers at the appropriate places.
Blog switch wpml string translation (multi-site)