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<?php
$args = array( 'post_type' => 'portafolio', 'posts_per_page' => 10, 'orderby' => 'menu_order', 'order' => 'ASC' ); $loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?>
<article>
<?php the_post_thumbnail( $size, $attr ); ?>
<h3><?php the_title();?></h3>
<?php the_content();?>
<span>Tareas: <?php ?> </span>
<?php if ( get_post_meta($post->ID, 'url', true) ) : ?>
<a title="ver web <?php the_title(); ?>" href="<?php echo get_post_meta($post->ID, 'url', true) ?>" target="_blank">Ver proyecto</a>
<?php endif; ?>
</article>
<?php
endwhile;
?>
Pero en tareas no sé que tengo que ponerle para que las muestre.
SOLUCIONADO, pongo código:
Código PHP:
Ver original<?php
$tareas= get_the_term_list( $post->ID, 'Tareas', ' ', ', ', '' );
if ($tareas != '')
//echo $tareas ;
?>