Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/285.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress分页,更改目的地_Wordpress - Fatal编程技术网

Wordpress分页,更改目的地

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

是否可以将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 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或其他归档类型的页面。