我希望使用this page上的qTranslate-Translation和其他任何名称为"Previous"和"Next"的链接 . 不知怎的,它不起作用,几个小时我试图弄清楚为什么......
它应该使用德语或英语单词,取决于所选语言 - 就像在任何其他语言上一样 . 在qTranslate的设置中"attachments"显然是检查翻译 .
它以某种方式识别标签,这样它不会将整个事物显示为字符串,而只是显示彼此相邻的两个字 .
也许有鹰眼的人?谢谢!
...
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="grid_12 exhibition-views">
<div class="navigation">
<div class="previous">
<?php
_e("[:en]".previous_image_link(0,'Previous')."[:de]".previous_image_link(0,'Zurück')."[:]");
?>
</div>
<div class="next">
<?php
_e("[:en]".next_image_link(0,'Next')."[:de]".next_image_link(0,'Weiter')."[:]");
?>
</div>
</div>
<?php echo wp_get_attachment_image( $post->ID, 'large' ); ?>
<!-- <div class="caption">< ?php if ( !empty($post->post_excerpt) ) the_excerpt(); ? ></div> -->
</div>
<?php endwhile; ?>
...
1 回答
根据您的代码判断,您希望
next_image_link
返回一个字符串 . 它没有 - 它是链接的echo
. 请参阅the source -next_image_link
调用adjacent_image_link
,它在第2658行执行回音 .做得怎么样:
代替?