出于某种原因,我的编辑给了我一个错误<?php endwhile; ?>
,我不知道为什么。它说它是一个syntax error
. 如果有人可以花时间检查我的代码,看看它是否是编辑器中的错误,或者我做错了什么,那将不胜感激!
编辑::::: 页面不会加载或者我发布了我在下面得到的错误的图片......
非常感谢提前!!!
<div class="homepage-slider-container">
<div class="homepage-slider">
<?php $loop = new WP_Query(array('post_type' => 'feature', 'posts_per_page' => -1, 'orderby'=> 'ASC')); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<a href="#" class="prev"><img src="<?php echo get_template_directory_uri(); ?>/img/slide-left-arrow.png" alt=""></a>
<a href="#" class="next"><img src="<?php echo get_template_directory_uri(); ?>/img/slide-right-arrow.png" alt=""></a>
<div class="slide">
<?php $url = get_post_meta($post->ID, "url", true);
if($url!='') {
echo '<a href="'.$url.'">';
echo '
?>
<div class="homepage-slider-title">
<span class="title-rectangle">
<article>
<h3><?php the_title(); ?></h3>
<div class="clear"><!-- Clear --></div>
<p><?php the_content();?></p>
</article>
</span>
<!-- This is the right arrow that is attached to the title rectangle -->
<div class="title-rectangle-right_arrow"> </div>
<!-- This is the arrow that is to the right of the title text area -->
<img src="<?php echo get_template_directory_uri(); ?>/img/slider-title-right-arrow.gif" class="title-rectangle-further_right_arrow" alt="">
<?php '; echo the_post_thumbnail('full');
echo '</div>';
echo '</div>';
?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
<div class="homepage-slider-front_pedestal">
<p><?php echo of_get_option('slider_front-pedestal', 'no entry'); ?></p>
</div>
</div>
</div>