evolved_query_post_type

The Evolved evolved query post type function.

Description

evolved_query_post_type( $query ); 

Parameters (1)

0. $query
The query.

Usage

  1. if ( !function_exists( 'evolved_query_post_type' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The query. 
  5. $query = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolved_query_post_type($query); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function evolved_query_post_type($query) { 
  2. if(is_tag()) { 
  3. $post_type = get_query_var('post_type'); 
  4. if($post_type) 
  5. $post_type = $post_type; 
  6. else 
  7. $post_type = array('post', 'nav_menu_item', 'evolved_game_reviews', 'evolced_video'); 
  8. $query->set('post_type', $post_type); 
  9. return $query;