Advertisement
bennyp

Untitled

Dec 13th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.31 KB | None | 0 0
  1. unset($portfolio_args['ai1ec_events']);
  2.  
  3. function custom_conference_in_home_loop( $query ) {
  4.  if ( is_home() && $query->is_main_query() )
  5.     $query->set( 'post_type', 'ai1ec_event' );
  6.     $query->set( 'orderby', 'start' );
  7.         return $query;
  8.  }
  9.  
  10.  add_filter( 'pre_get_posts', 'custom_conference_in_home_loop' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement