カスタム投稿のシングルページでエラー
-
Warning: count(): Parameter must be an array or an object that implements Countable in /home/asabe/www/asia-new/wp-includes/post-template.php on line 317
というエラーが出て、コンテンツが表示されません該当の
post-template.php on line 317
は
// If the requested page doesn’t exist.
if ( $elements[‘page’] > count( $elements[‘pages’] ) ) {
// Give them the highest numbered page that DOES exist.
$elements[‘page’] = count( $elements[‘pages’] );
}
となっていて、コンテンツ表示に関わる部分のようです。ここを削除すればエラーは消えますが、コンテンツが表示されないことは変わりません。single-投稿タイプ.php内の
<?php the_content(); ?>
を削除すると、やはりエラーは消えますが、当然ながらコンテンツは表示されません。よろしくお願いします。
ヘルプの必要なページ: [リンクを見るにはログイン]
2件の返信を表示中 - 1 - 2件目 (全2件中)
2件の返信を表示中 - 1 - 2件目 (全2件中)
- トピック「カスタム投稿のシングルページでエラー」には新たに返信することはできません。