hangar-wp-theme/hangar/taxonomy.php

40 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2021-02-18 14:09:56 +01:00
<?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(); ?>