Ejemplo n.º 1
0
                        <a href="<?php 
    echo wp_logout_url('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    ?>
" title="Click here to Log out" class="high">Logout</a>
                    </span>
                </p>
            <?php 
}
?>
        </li>
    </ul>                    
    <?php 
zm_base_list_terms(array('taxonomy' => 'type', 'link' => 'anchor', 'post_id' => $post->ID, 'post_type' => $post->post_type));
?>
    <?php 
zm_base_list_terms(array('taxonomy' => 'status', 'link' => 'anchor', 'post_id' => $post->ID));
?>
    <?php 
zm_base_list_terms(array('taxonomy' => 'priority', 'link' => 'anchor', 'post_id' => $post->ID));
?>
    <?php 
zm_base_list_terms(array('taxonomy' => 'project', 'link' => 'anchor', 'post_id' => $post->ID));
?>
    <?php 
zm_base_list_terms(array('taxonomy' => 'phase', 'link' => 'anchor', 'post_id' => $post->ID));
?>
    <?php 
zm_base_list_terms(array('taxonomy' => 'assigned', 'link' => 'anchor', 'post_id' => $post->ID));
?>
</div>
Ejemplo n.º 2
0
}
?>
        </li>
    </ul>        
    <?php 
global $wp_query;
// Derive the Current Post Type
// Are we viewing a Custom Post Type Archive?
if (is_post_type_archive() || is_single()) {
    $cpt = $wp_query->query_vars['post_type'];
} elseif (is_tax()) {
    // Are we viewing a Custom Taxonomy Archive?
    $cpt = $wp_query->posts[0]->post_type;
} else {
    // Else die
    wp_die('need a CPT');
}
$cpt_obj = get_post_types(array('name' => $cpt), 'objects');
?>
   	<?php 
foreach ($cpt_obj[$cpt]->taxonomies as $tax) {
    ?>
        <?php 
    zm_base_list_terms(array('taxonomy' => $tax));
    ?>
    <?php 
}
?>
        
</div>