<?php get_header(); $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); ?> <div id="main"> <div id="content" class="seccio unic"> <div id="pagina" class="shadow"> <h2><?php printf( __( 'Artists by year %s', 'hangar' ), '<span>' . $term->name . '</span>' ); ?></h2> <?php /* if ( ! have_posts() ) : while ( have_posts() ) : the_post(); $the_query ='post_parent=497&post_type=page&meta_key=autor_obra&orderby=meta_value&order=ASC'; $query_object = new WP_Query($the_query);*/?> <ul id="artistes" class="alfa"> <?php if (have_posts() ) : while(have_posts() ) : the_post(); ?> <li> <a href="<?php echo get_permalink();?>"><?php echo get_post_meta($post->ID, 'autor_obra', true);?></a> </li> <?php endwhile; else: ?> <p class="no-data"> <?php _e( 'Apologies, but no results were found.', 'hangar' ); ?> </p><!-- .no-data --> <?php endif; ?> </div><!-- .pagina --> </div><!-- .content --> </div><!--end Main--> <?php get_footer(); ?>