It works, and I love this plugin !!!
global $wp_query;
$args = array(
‘category_name’ => ‘dvd’,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’,
‘post_type’ => ‘products’
);
query_posts( $args );
Where does this bit of code go?
It really depends how your using wordpress.
I’m using a custom built template for each page on the website. On any given template page, I’m using this code to print out some posts. If you read the code, it’s saying:
• grab all the post types that are ‘products’
• in the ‘dvd’ category
• and sort them according to the ‘menu_order’ settings.
I am using a prebuilt template with several plug ins. The specific one I am trying to reorder is ‘Our Team’. The plugin does everything I want except let me order the posts. I thought this would fix that (after trying a few others, it almost does). I am using the Full Page Template for this page and tried putting the code from this post http://wordpress.org/support/topic/plugin-metronet-reorder-posts-new-reorder-page-in-admin-but-no-reorder-on-live-site?replies=9
$wp_query->set(‘orderby’, ‘menu_order’);
$wp_query->set(‘order’, ‘DESC’);
$wp_query->get_posts();
and your code. I put them within <php tags but neither changed the order.
I also tried adding the code in the header.php, page.php and in the plugin editor.
I am at a loss and greatly appreciate any help.