in my blog I have done a sidebar where are displayed some articles. It is done by querying wordpress:
$pq = new WP_Query(array( 'post_type' => $ptype, 'showposts' => $pshow ));
My question is: how can I get retrieve articles from the 6-th, and not from the last posted? Thank you so much.
In alternative, how can I extract random post different from the last six post?
Thanks in advance.
将'offset' => n
添加到查询中以反弹前n个结果。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.