With the following code, I do not get the result set ordered by titles. No matter what values I give to 'orderby' and 'order', I get the same ordering. The parameters seem to be ignored (or overridden?) by something else..

Any idea how I troubleshoot this one? Is there a specific filter I should be looking at, that some plugin could be overriding this via?

Should the code below work out of the box? IF it looks correct, something must be interfering.

$args = Array(
    'post_type' => 'post'
    'category_name' => 'reviews'
    'posts_per_page' => '999'
    'orderby' => 'title'
    'order"' => 'ASC'
    'post_status' => 'publish'

$customloop = new WP_Query();

while ($customloop->have_posts()) { ... }

1 Answer 1


I noticed you have an extra quote after order in your args. That affecting it?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.