Custom Loop doesn’t use SCPO order
-
I’ve been working with WPMU-dev to resolve the issue, see the ticket here: https://premium.wpmudev.org/forums/topic/post-order-not-showing-up/
I am using the following PHP loop:
<?php if(have_posts()): global $wp_query; $args = array_merge( $wp_query->query, array( 'post_type' => 'any' ) ); query_posts( $args ); while(have_posts()) : the_post(); get_template_part('content', get_post_format()); endwhile; else : echo ' No Content Found '; endif; wp_reset_postdata(); ?>
But it isn’t using the order set on the back end… Is there an “orderby” value I need to add to my loop?
Thanks,
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Loop doesn’t use SCPO order’ is closed to new replies.