Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/12/2012, 05:55
PSPforever
 
Fecha de Ingreso: marzo-2008
Mensajes: 186
Antigüedad: 16 años, 1 mes
Puntos: 3
Pregunta Problema con custom posts.

Buenas,

he utilizado el plugin custom posts para crear nuevos tipos de contenido en mi tema. El problema viene que he creado una nueva taxonomía similar a categorías, pero bajo el nombre de "Tareas" y no se como puedo mostrarlo en la vista.

Tengo este código en la vista del custom post:

Código PHP:
Ver original
  1. <?php
  2. $args = array( 'post_type' => 'portafolio', 'posts_per_page' => 10, 'orderby' => 'menu_order', 'order' => 'ASC' );
  3. $loop = new WP_Query( $args );
  4. while ( $loop->have_posts() ) : $loop->the_post();
  5. ?>
  6. <article>
  7. <?php the_post_thumbnail( $size, $attr ); ?>
  8. <h3><?php the_title();?></h3>
  9. <?php the_content();?>
  10. <span>Tareas: <?php ?> </span>
  11. <?php if ( get_post_meta($post->ID, 'url', true) ) : ?>
  12. <a title="ver web <?php the_title(); ?>" href="<?php echo get_post_meta($post->ID, 'url', true) ?>" target="_blank">Ver proyecto</a>
  13. <?php endif; ?>
  14. </article>
  15. <?php
  16. endwhile;
  17. ?>

Pero en tareas no sé que tengo que ponerle para que las muestre.

SOLUCIONADO, pongo código:

Código PHP:
Ver original
  1. <?php
  2. $tareas= get_the_term_list( $post->ID, 'Tareas', ' ', ', ', '' );
  3. if ($tareas != '')
  4.     //echo  $tareas ;
  5. ?>

Última edición por PSPforever; 05/12/2012 a las 05:41