Ejemplo n.º 1
0
 /**
  * Returns all IDs from the given taxonomy
  * @param string $tax Taxonomy to retrieve terms from.
  * @return array $term_ids Array of all taxonomy terms
  * @since 1.0.0
  */
 function get_all_terms_ids($tax = 'category')
 {
     return themify_get_all_terms_ids($tax);
 }
Ejemplo n.º 2
0
    }
}
?>
		
		<?php 
/////////////////////////////////////////////
// Query Category
/////////////////////////////////////////////
?>
		<?php 
if ($themify->query_category != '') {
    ?>

			<?php 
    // Categories for Query Posts or Portfolios
    $categories = '0' == $themify->query_category ? themify_get_all_terms_ids($themify->query_taxonomy) : explode(',', str_replace(' ', '', $themify->query_category));
    $qpargs = array('post_type' => $themify->query_post_type, 'tax_query' => array(array('taxonomy' => $themify->query_taxonomy, 'field' => 'id', 'terms' => $categories)), 'posts_per_page' => $themify->posts_per_page, 'paged' => $themify->paged, 'order' => $themify->order, 'orderby' => $themify->orderby);
    ?>

			<?php 
    query_posts(apply_filters('themify_query_posts_page_args', $qpargs));
    ?>

			<?php 
    if (have_posts()) {
        ?>

				<?php 
        /////////////////////////////////////////////
        // Entry Filter
        /////////////////////////////////////////////