Wordpress分页,更改目的地
是否可以将wordpress中的分页更改为: 致: 我发现:\在第\页之后\u编号并测试此:Wordpress分页,更改目的地,wordpress,Wordpress,是否可以将wordpress中的分页更改为: 致: 我发现:\在第\页之后\u编号并测试此: <?php add_action( 'init', 'my_custom_page_word' ); function my_custom_page_word() { global $wp_rewrite; // Get the global wordpress rewrite-rules/settings // Change the pagination property whic
<?php
add_action( 'init', 'my_custom_page_word' );
function my_custom_page_word() {
global $wp_rewrite; // Get the global wordpress rewrite-rules/settings
// Change the pagination property which sets the wordpress pagination slug.
$wp_rewrite->pagination_after_page_number = "#Content"; //where new-slug is the slug you want to use ;)
} ?>
你在哪里找到这个方法的<代码>页码后的页码
此处:您好。这不是使用该参数的方式,它需要在函数paginate_links()的数组中传递-您的分页函数出现在主题中,在使用分页的页面模板上。通常是主题/子主题的index.php或其他归档类型的页面。