Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a multilingual website (English and Welsh) and I am using the qtranslate plugin.

Everything works OK however I cant seem to get the 'Read more' permalink to change to the corresponding language in my wordpress loop. My code is the below:

<article class="recent-blog">';
$output .='<h4><a href="'. get_permalink().'">'.get_the_title().'</a></h4>  
<p>'.$short_excerpt.'</p>
<p class="readmore_link"><a href="'. get_permalink().'"> Read More </a></p>
</article>

I've tried [:en] and [:cy] before the readmore text, but still can't seem to get it to work.

Does anybody have any ideas on how to get it to work? Any help would be greatly appreciated :)

share|improve this question
    
Your code looks broken. Post it in more context please. –  s_ha_dum May 13 at 21:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.