开发者

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 endwhi开发者_开发问答le; ?>

</section>

I get an unexpected endwhile on line 35. Can someone help me out?


Missing } on line 29, is my guess.


Mismatched brace on line 29; you don't close your if's {.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜