で問題だから私は、次のコードを持っている:get_cat_ID
は動作しません。これコードが動作するWordpressの:ループ
<?php
query_posts("order=ASC&cat=4");
?>
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<?php if(get_post_custom_values("show") != NULL): ?>
<?php
$categories = get_cat_ID(get_the_title());
$url = get_category_link($categories);
?>
<li class="thumb">
<a href=""><?php the_post_thumbnail(array(215,200)); ?></a>
<h2><a href=""><?php the_title(); ?></a></h2>
</li>
<?php endif; ?>
<?php endwhile; endif; ?>
</ul>
が、あなたがあなたのタイトル$categories = get_cat_ID(get_the_title());
で& -
を持っている場合は、あなたの周りの仕事を知っていますか?
私はバットからすぐに見ることができることの1つは、あなたが 'if(have_posts())'を必要としないということです... –
Nopは、何もしません、私は余分な安全のために置く:D – Uffo