I’m using this plugin in conjunction with the Types plugin. I have 4 custom post types, some of which are ordering as expected and some of which are not.
Here is my code for an example that is NOT sorting:
<?php $args = array( 'post_type' => 'side_feature', 'posts_per_page' => 3, 'order'=>'ASC', 'hierarchical' => false); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <li> <!-- my code --> </li> <?php endwhile; ?>
I’m using the exact same code to sort my homepage billboards, which is working fine, so I’m a little perplexed here.
Thanks in advance for your help!
- The topic ‘Sort not working on SOME custom post types’ is closed to new replies.