wordpressループでコンテンツを出力したい
-
●質問の主旨
page.phpにあるwordpressループで
コンテンツを出力したいのですが、
エラーが表示されてコンテンツの出力ができません。
どうすれば良いでしょうか?
ご存知の方よろしくお願いします。●質問の補足
本格ビジネスサイトを作りながら学ぶ
WordPressの教科書という本のP87にある方法を、
書いてある通りにしているつもりですが、
そうならずに困っています。●コード(page.php)
<?php get_header(); ?>
<section id=”contents”>
<?php
if (have_posts());
while (have_posts());
the_post();
the_content();
endwhile;
endif;
?>
</section><!– #contents end –>
<?php get_sidebar(); ?>
<?php get_footer(); ?>●エラー内容
Parse error: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in C:\xampp\htdocs\wordpress\wp-content\themes\pacific\page.php on line 8
●開発環境
windows8
xammp1.8.1
4件の返信を表示中 - 1 - 4件目 (全4件中)
4件の返信を表示中 - 1 - 4件目 (全4件中)
- トピック「wordpressループでコンテンツを出力したい」には新たに返信することはできません。