WP-multilingual and titles on index page
-
I’m using wp-multilingual and have a website in two languages (estonian and english) (http://www.puhajarvetriatlon.ee). The posts are displayed on page “News”. I wanted to bring post titles also onto the front page and I’m using the following code to do that:
<?php global $post; $myposts = get_posts('numberposts=6&order=DESC&orderby=date'); foreach($myposts as $post) : ?> <li class="valge_pealkiri"><a href="<?php the_permalink(); ?>"><span style='font-size: 12px'><?php the_title(); ?></span></a> (<?php the_time('d.m.Y') ?>)</li> <?php endforeach; ?>
The problem with this code is that the post titles are only in Estonian (even when English language is selected and all other text is in English). When I click on the title though the link takes me to the same post in english.
How can I get the titles on the front page in the language that is selected?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP-multilingual and titles on index page’ is closed to new replies.