[wp-hackers] order post in a page which display post per custom	taxonomy
    Jimmy Roy 
    jimmy.roy at gmail.com
       
    Wed Mar 30 16:04:54 UTC 2011
    
    
  
finaly I found how to do:
$args = array(
   'orderby' => 'menu_order',
   'order' => 'asc'
);
query_posts(array_merge( $wp_query->query,$args ));
before I try but I didn't use array_merge...
--
Jimmy | www.jimmyroy.fr
--
2011/3/30 Jimmy Roy <jimmy.roy at gmail.com>
> hi all,
>
> my website have custom post type and custom taxonomy.
>
> I've a page which display all the custom post type associate to a custom
> taxonomy, I use for that the template taxonomy-my_taxonomy.php
>
> is it possible to use the order attribut to order post in this page?
>
> or I would like to display the older post first, currently it's the newer
> posts which come first.
>
> thank you for your help,
>
> --
> Jimmy | www.jimmyroy.fr
> --
>
>
>
    
    
More information about the wp-hackers
mailing list