<?php $loop = new WP_Query( array(
'post_type' => 'team-members',
'showposts' => -1,
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'department',
'terms' => 'executives',
'field' => 'slug'
),
array(
'taxonomy' => 'city',
'terms' => 'portland',
'field' => 'slug'
)
),
'orderby' => 'title',
'order' => 'ASC' ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<h3><?php the_title() ?></h3>
<?php the_content(); ?>
<?php endwhile; ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.