Skip to content

Instantly share code, notes, and snippets.

@johnsparrow
johnsparrow / gist:5572286
Last active December 17, 2015 07:19
Custom post type loop with optional extra arguments
<?php
function do_custom_pt_query( $args = array() ){
global $post;
$def_args = array('post_type' => 'on_air_programs',
'numberposts' => -1,