1
On a static page in wordpress I’m looping a custom post type from a list of services as follows:
$temp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query('showposts=14&post_type=servicos'.'&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post();
the_excerpt('');
endwhile;
$wp_query = null;
$wp_query = $temp; // Reset
Beside I load a list of specialties through the code below:
wp_list_categories('taxonomy=Servicos&title_li=');
Both I needed to sort following the order of the menu_order column in the wp_posts table. How could I do this?
Friend, that’s what I needed. Thanks for the very detailed explanation. Mine helped a lot. Thanks! Success!!
– Sergio Vidal