Esempio n. 1
0
?>

		<?php 
/////////////////////////////////////////////
// Category Title
/////////////////////////////////////////////
?>
		<?php 
if (is_category() || is_tag() || is_tax()) {
    ?>
			<h1 class="page-title"><?php 
    single_cat_title();
    ?>
</h1>
			<?php 
    echo themify_get_term_description();
    ?>
		<?php 
}
?>

		<?php 
/////////////////////////////////////////////
// Default query categories
/////////////////////////////////////////////
?>
		<?php 
if (!is_search()) {
    ?>
			<?php 
    global $query_string;
Esempio n. 2
0
 /**
  * Returns category description
  * @return string
  * @since 1.0.0
  */
 function get_category_description()
 {
     return themify_get_term_description();
 }
Esempio n. 3
0
themify_content_start();
//hook
?>
	
		<?php 
/////////////////////////////////////////////
// Category Title
/////////////////////////////////////////////
?>
		
		<h1 class="page-title"><?php 
single_cat_title();
?>
</h1>
		<?php 
echo themify_get_term_description($wp_query->query_vars['taxonomy']);
?>
		
		<?php 
global $query_string;
// If it's a taxonomy, set the related post type
$set_post_type = str_replace('-category', '', $wp_query->query_vars['taxonomy']);
if (in_array($wp_query->query_vars['taxonomy'], get_object_taxonomies($set_post_type))) {
    $themify_query = $query_string . '&post_type=' . $set_post_type . '&paged=' . $paged;
    query_posts($themify_query);
}
?>

		<?php 
/////////////////////////////////////////////
// Loop