[英]Why am I getting an unexpected endwhile?
<?php
$loop = new WP_Query(array('post_type' => 'portfolio', 'posts_per_page' => -1));
while ( $loop->have_posts() ) : $loop->the_post();
$custom = get_post_custom($post->ID);
$special_notes = $custom["special_notes"][0];
$website_url = $custom["website_url"][0];
$view_more = $custom["view_more"][0];
?>
<article class="project">
<section class="thumbnail">
<?php the_post_thumbnail(); ?>
<section class="description">
<hgroup>
<h2><?php the_title(); ?></h2>
<h3>
<?php
$terms_as_text = get_the_term_list( $post->ID, 'Skills', '', ', ', '' ) ;
echo strip_tags($terms_as_text);
?>
</h3>
</hgroup>
<?php the_content(); ?>
<p class="star"><?=$special_notes?></p>
<span>
<?php if (!empty($website_url)) { echo 'Launch <a href="' . $website_url . '" target="_blank">Website<a>' ?> | Read <a href="<?=$view_more?>" target="_blank">more</a> about this project
</span>
</section>
</section>
</article>
<?php endwhile; ?>
</section>
I get an unexpected endwhile on line 35. Can someone help me out? 在35行时,我遇到了意外结束。有人可以帮我吗?
我猜想第29行上缺少}
。
Mismatched brace on line 29; 第29行的括号不匹配; you don't close your if's {.
您不会关闭if的{。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.