1
需要帮助。
我想添加rel =“nofollow”标记到我的网站主题中显示的分页链接。
我正在使用此功能来使用分页。如何将rel =“no-follow”添加到wordpress paginate_links()
<?php
$paged1 = isset($_GET['paged1']) ? (int) $_GET['paged1'] : 1;
$pag_args1 = array(
'format' => '?paged1=%#%',
'current' => $paged1,
'total' => $query1->max_num_pages,
'prev_text' => __('« Prev'),
'next_text' => __('Next »'),
'add_args' => array('paged2' => $paged2)
);
echo paginate_links($pag_args1);
?>
优秀的答案... – jho1086
创建一个要点得到的未格式化为HTML链接的数组: https://gist.github.com/leepowers/5267871 – leepowers