WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Duplicate post title of next/previous post (2 posts)

  1. Glzstk
    Member
    Posted 2 years ago #

    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???

    http://wordpress.org/extend/plugins/qtranslate/

  2. ezezag
    Member
    Posted 1 year ago #

    Hello!! Did you find any solution?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags