가 :워드 프레스 : 그래서 나는 다음과 같은 코드가 루프에서 문제
<?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());
에 & -
이있을 때 ... get_cat_ID
가 작동하지 않습니다를, 당신이 주변에 작품을 알 수 있습니까?
방망이에서 볼 수있는 한 가지 사실은 그곳에'if (have_posts())가 필요 없다는 것입니다 ... –
Nop, 아무 것도하지 않고, 여분의 안전을 위해 넣었습니다 : D – Uffo