【发布时间】:2013-03-04 08:49:29
【问题描述】:
我需要在 query_posts() 中获取与特定类别相关的所有帖子 ID。
我目前正在使用以下代码:
<?php
query_posts('cat=11&p=-1');
while ((have_posts()) : the_post();
the_title();
the_content();
endwhile;
?>
我希望在“p=”中插入 -1 会带来所有帖子,但事实并非如此。 有人可以帮忙吗?
提前致谢, 埃亚尔
【问题讨论】:
-
需要更多代码,id是在同一个表还是不同的表?