Advertisement
Guest User

audio loop

a guest
Aug 17th, 2011
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. //Add audio loop
  2.    add_action( 'woo_loop_before', 'woo_hook_audio_loop_before', 12 );
  3.  
  4.     function woo_hook_audio_loop_before () {
  5.         if ( is_home() ) {
  6.             $args = array(
  7.                 'tax_query' => array(
  8.                     array(
  9.                         'taxonomy' => 'post_format',
  10.                         'field' => 'slug',
  11.                         'terms' => array ('post-format-quote')
  12.                     )
  13.                 )
  14.             );
  15. $query = new WP_Query( $args );
  16.  
  17.         } // End IF Statement
  18.     } // End woo_hook_audio_loop_before()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement