저는 사용자 정의 테마를 만드는 wordpress.org를 사용하고 있으며 완전한 PHP 놈입니다. 그것은 나쁜 구문에 대해 무언가를 말하고 내 웹 사이트는 나타나지 않을 것입니다. 나는 해킹 당하지 않았다. 나는 나만의 커스텀 테마를 만들고 있으며, 모든 것을 적절히 닫을 방법을 모른다. 어쨌든 여기 내 index.php 페이지입니다. 내가 뭘 놓치고 있니? 무엇이 제대로 닫히지 않습니까? 나는 도움을 크게 주셔서 감사합니다!WORDPRESS.ORG 구문 분석 오류 : index.php의 구문 오류
<?php get_header(); ?>
<div id="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="posts">
<div id="post">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="post-thumb">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
</div><!--POST-THUMB-->
<p class="lit"><?php the_content(''); ?></p>
<div id="price_buy">
<ul>
<li><?php echo get_post_meta($post->ID, "price", true);?>$</li>
<li><a target="_blank" href="<?php echo get_post_meta($post->ID, "buy", true);?>">BUY</a></li>
</ul>
</div>
<div id="share"><span class="cats">MORE:<?php the_category(', ') ?></span>
<p>SHARE</p>
<ul>
<?php if (get_option('lp_share_post_facebook') == "true") { ?>
<li>
<a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>?t=<?php the_title(); ?>" title="Post to Facebook">
<img src="<?php echo get_template_directory_uri(); ?>/images/facebook-big.png" alt="Facebook" /></a>
</li>
<?php } ?><?php if (get_option('lp_share_post_twitter') == "true") { ?>
<li>
<a href="http://twitter.com/home/?status=<?php the_title(); ?> - <?php the_permalink(); ?>" title="Post to Twitter">
<img src="<?php echo get_template_directory_uri(); ?>/images/twitter-big.png" alt="Twitter" /></a>
</li>
<?php } ?><?php if (get_option('lp_share_post_email') == "true") { ?>
<li>
<a href="mailto:?subject=<?php the_title(); ?>&body=<?php the_permalink(); ?>" title="Email a Friend">
<img src="<?php echo get_template_directory_uri(); ?>/images/email.png" alt="Email" /></a>
</li>
<?php } ?>
</ul>
</div>
</div><!--POST-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
오류가 무엇입니까? 어느 선 에서요? 필요한 모든 정보는 오류 메시지에 있어야합니다. 우리는 그것을 모르기 때문에 우리는 당신을 도울 수 없습니다. * 편집 : * 오류가있는 것 같습니다. * 구문 분석 오류 : 구문 오류, 51 행의 예상치 못한 $ end * ... 어딘가에'endwhile; '도 호출해야한다고 가정합니다. –
그래, 구문 오류가 있습니다. –