我试图编辑原文the_post_navigation
, 在回路内部,这样我就可以rel="nofollow"
在它里面
the_post_navigation( array(
\'mid_size\' => 3,
\'next_text\' => __( \'Next frase\', \'textdomain\' ),
) );
我还尝试使用定制的,但这不起作用。<div class="next-timeline">
<?php next_post_link( \'%link\', __( \'Próxima frase\', \'adoro-frases-final\' ) ); ?>
<a href="<?php echo $permalink; ?>" rel="nofollow"><?php echo $next_post->post_title; ?></a>
</div>
我还向页脚插入了一个脚本,这样它就可以在链接中插入我想要的内容,但它会创建另一个div.a
相反$( document ).ready(function() {
$(\'div.next-timeline > a#lnk-nflw\').attr(\'rel\',\'nofollow\')
});
有什么想法吗?谢谢