回答編集履歴
2
コード変更
test
CHANGED
@@ -6,11 +6,9 @@
|
|
6
6
|
|
7
7
|
add_filter( 'content_pagination', function ( $pages, $post ) {
|
8
8
|
|
9
|
-
if ( ! is_feed() && ! wp_is_mobile() ) {
|
9
|
+
if ( ! is_feed() && ! wp_is_mobile() && 1 < count( $pages ) ) {
|
10
10
|
|
11
|
-
$content = str_replace( "<!--nextpage-->", '', $post->post_content );
|
12
|
-
|
13
|
-
$pages = array(
|
11
|
+
$pages = array( implode( "\n\n", $pages ) );
|
14
12
|
|
15
13
|
}
|
16
14
|
|
1
追記
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
こんな感じでいかがでしょうか?
|
1
|
+
そもそも nextpage を処理している部分から、なんとかしないとダメだと思います。というわけで、こんな感じでいかがでしょうか?
|
2
2
|
|
3
3
|
|
4
4
|
|