Php Pods获取记录跳过项目
所以我用Pods抓取了一些唱片。Php Pods获取记录跳过项目,php,wordpress,podscms,Php,Wordpress,Podscms,所以我用Pods抓取了一些唱片。 我有31条记录,但我的while($thePod->fetchRecord())循环只运行了15次 $thePod = new Pod('projects'); $thePod->findRecords('slider_order ASC'); $totalItems = $thePod->getTotalRows(); // = 31 while($thePod->fetchRecord()) : $i++; endwhile; e
我有31条记录,但我的
while($thePod->fetchRecord())
循环只运行了15次
$thePod = new Pod('projects');
$thePod->findRecords('slider_order ASC');
$totalItems = $thePod->getTotalRows(); // = 31
while($thePod->fetchRecord()) :
$i++;
endwhile;
echo $i.'/'.$totalItems.' looped through'; // displays 15/31
知道为什么会发生这种情况吗?将第2行更改为:
$thePod->findRecords('slider_order ASC',-1);
15是每页的默认记录,-1返回所有记录