wordpress升级到3.4.1后,循环看起来不起作用

时间:2012-08-03 16:52:26

标签: php wordpress

有问题的循环似乎不起作用

<?php
    $args = array( 'category_name' => 'shit', 'order' => 'DESC', 'posts_per_page' => 50, 'post_status' => "publish" );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();?>

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">    
       <div class="shit" style="z-index:1;">
           <div class="shit-pic"><img src="<?php echo catch_that_image() ?>" /></div>
           <div class="shit-title"><?php the_title(); ?></div>
       </div>
    </a>

<?php endwhile; ?>

在我们升级到Wordpress 3.4.1之后,这似乎已经破裂了:(

任何建议对解决这个问题都非常有用!

chrome检查中的代码显示:

<a href="http://huntermadeit.com/2012/08/02/chill-pic-68-i-love-my-city-i-love-my-city-i-love-my-city-edition/" rel="bookmark" title="Permanent Link to CHILL PIC #68 (i love my city i love my city i love my city Edition)">    
    <div class="shit" style="z-index:1;">
    <div class="shit-pic"></div></div>
</a>

0 个答案:

没有答案