0
remove_all_filters('posts_orderby');
$args = array(
    'post_type' => 'attachment',
    'numberposts' => 6,
    'orderby' => 'rand',
    'exclude' => get_post_thumbnail_id(),
    'post_parent' => $post->ID
);

有人可以向我解释为什么该'orderby' => 'rand'部分不工作吗?

谢谢!

4

1 回答 1

1

找到了。我需要添加'order' => 'post_date',$args. 感谢@BenM 的帮助!

于 2013-02-08T11:19:13.263 回答