help with WP_Query orderby
I am trying to query a custom post type using WP_Query. It works fine, except for the orderby parameter. No matter what I set it to, I get the same order. Here’s some code:
$quilts = new WP_Query( 'post_type=profiles&post_status=publish&orderby=rand' );
Again, I can change the orderby and the order stays the same.
Any idea what might be causing this?
- The topic ‘help with WP_Query orderby’ is closed to new replies.