Skip to content

Instantly share code, notes, and snippets.

@xafarali
Created June 9, 2013 22:42
Show Gist options
  • Save xafarali/5745572 to your computer and use it in GitHub Desktop.
Save xafarali/5745572 to your computer and use it in GitHub Desktop.
Add Custom Post In Master Loop
<?php
if (is_archive() || is_category() || is_search() ) {
global $query_string;
parse_str( $query_string, $args );
$args['post_type'] = array( 'ss-video', 'post' );
query_posts( $args );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment