[Plugin: qTranslate] Duplicate post title of next/previous post
-
Good day!
I have a problen when i try input title of next/previous post after end of the text of post.
<?php $next_post = get_adjacent_post(false, '', false); ?> <?php if ($next_post) : $next_post_url = get_permalink($next_post->ID); $next_post_title = $next_post->post_title; ?> <a class="post-next" href="<?php echo $next_post_url; ?>"><em>Next post</em><span><?php echo $next_post_title; ?></span></a> <?php endif; ?>
It return good url, but next post title output on both language (Russian and English). Maybe anybody knows how show only one title on necessary langyage???
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[Plugin: qTranslate] Duplicate post title of next/previous post’ is closed to new replies.