只需将图像指定为“nextpagelink”和“previouspagelink”,而不是<&书信电报;或>>:
<?php wp_link_pages(array(\'before\' => \'<div class="pagenav"><strong>Navigate</strong>\', \'after\' => \'</div>\', \'next_or_number\' => \'number\', \'nextpagelink\' => __(\'<img src="PUT YOUR IMAGE URL HERE" />\'), \'previouspagelink\' => __(\'<img src="PUT YOUR IMAGE URL HERE" />\'))); ?>
此外,默认情况下,您被限制为“数字”或“下一个/上一个”链接是正确的,但插件可以扩展这一点:
http://wordpress.org/extend/plugins/wp-pagenavi/Bonus: 将此添加到函数中。php,它将在所见即所得编辑器中的“更多”按钮旁边添加一个“下一页”按钮:
// Add Next Page Button to TinyMCE Editor
add_filter(\'mce_buttons\',\'wysiwyg_editor\');
function wysiwyg_editor($mce_buttons) {
$pos = array_search(\'wp_more\',$mce_buttons,true);
if ($pos !== false) {
$tmp_buttons = array_slice($mce_buttons, 0, $pos+1);
$tmp_buttons[] = \'wp_page\';
$mce_buttons = array_merge($tmp_buttons, array_slice($mce_buttons, $pos+1));
}
return $mce_buttons;
}