小编Rob*_*bby的帖子

解析错误:语法错误,意外T_ENDWHILE

<?php get_header(); ?>
<div id="content">

<?php if (have_posts()): ?>

    <?php $i=0;?>
    <?php while (have_posts()) : the_post(); ?>
    <?php $i++;?>
    <div class="cols"<? if($i%3==0) echo ' style="margin-right:0"';?>>
        <div class="post" id="post-<?php the_ID(); ?>">
            <?php $thumb=get_post_meta($post->ID, 'image', true); ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
            <?php if($thumb!=''){
            $thumb = str_replace(get_bloginfo('url').'/','',$thumb);
            ?>
            <img src="<?php bloginfo('template_url');?>/thumb.php?src=<?=$thumb;?>&w=183&h=140&zc=1" class="thumb" alt="<?php the_title(); ?>" />
            <? } else { ?>
            <img src="<?php bloginfo('template_url'); ?>/images/pic.jpg" alt="" class="thumb" />
            <? } ?>
            </a>

            <h2 class="title"><a href="<?php the_permalink() …
Run Code Online (Sandbox Code Playgroud)

php

0
推荐指数
1
解决办法
6595
查看次数

标签 统计

php ×1