Order posts(posts, any custom post types) using a Drag and Drop Sortable JavaScript. Configuration is unnecessary.
GNU General Public License v3.0
31
stars
20
forks
source link
Custom loop written doesn't use SCPO order #91
Closed
bythebootstrap closed 7 months ago
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,