Ver Mensaje Individual
  #10 (permalink)  
Antiguo 18/04/2012, 07:45
Avatar de Osaka_lime
Osaka_lime
 
Fecha de Ingreso: septiembre-2010
Mensajes: 30
Antigüedad: 13 años, 7 meses
Puntos: 3
Respuesta: Asociar post a una seccion editable

Estoy intentando ordenar los childs de la taxonomia revista que he creado por orden de id pero no lo consigo, este es el codigo que tengo ahora mismo.

Código:
<?php if ( have_posts() ) : ?>

				<?php twentyeleven_content_nav( 'nav-above' ); ?>

				<?php /* Start the Loop */ ?>
				<?php $args = array(
	'orderby' => 'term_taxonomy_id',
	'tax_query' => array(array('taxonomy' => 'revista', 'field' => 'slug','terms' => 'revista',)),
	
	
    
);
$the_query = new WP_Query( $args );?>
				<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

					<?php get_template_part( 'content', get_post_format() ); ?>

				<?php endwhile; ?>
Si me pudieseis echar una mano al respecto os estaria agradecido!