<div class="row toc-menu submenu"> <div class="small-12 column"> <?php // LOOP $search = array('post_type' => 'masthead', 'tax_query' => array(array('taxonomy' => 'issue', 'field' => 'slug', 'terms' => current_taxonomy()))); $mastQuery = new WP_Query($search); if ($mastQuery->have_posts()) { while ($mastQuery->have_posts()) { $mastQuery->the_post(); $mast = '<li class="toc-item"><a class="toc-link webapp" href="' . get_permalink() . '">' . get_the_title() . '</a></li>'; } } ?> <?php // LOOP $args = array('post_type' => 'article', 'tax_query' => array(array('taxonomy' => 'issue', 'field' => 'slug', 'terms' => current_taxonomy()))); $query = new WP_Query($args); if ($query->have_posts()) { echo '<h2>' . custom_taxonomies_terms_links() . '</h2>'; echo '<ul class="toc-item-list">'; if (isset($mast)) { echo $mast; } while ($query->have_posts()) { $query->the_post(); $link = get_permalink(); $rel = wp_make_link_relative($link); echo '<li class="toc-item">'; echo '<a class="toc-link webapp" href="' . $rel . '">' . get_the_title() . '</a>'; echo '</li>'; }
<div class="hero"> <div class="hero-curtain"></div> <img class="cover-image" src="<?php if (function_exists('z_taxonomy_image_url')) { echo z_taxonomy_image_url(); } ?> "/> </div> <div id="content" class="content row"> <div class="small-12 medium-10 medium-centered large-6 column"> <h1 class="headline">Headline</h1> <?php // LOOP $args = array('post_type' => 'post', 'tax_query' => array(array('taxonomy' => 'state', 'field' => 'slug', 'terms' => current_taxonomy()))); $query = new WP_Query($args); if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); echo '<article id="post-' . get_the_id() . '" class="blog-post hentry type-' . get_post_type($post) . '">'; echo '<a href="' . get_permalink() . '"><h1 class="story-title title">' . get_the_title() . '</h1></a>'; echo '</article>'; } } ?> </div> </div>