Skip to content

Instantly share code, notes, and snippets.

@eddiemoya
Created September 14, 2012 20:52
Show Gist options
  • Save eddiemoya/3724727 to your computer and use it in GitHub Desktop.
Save eddiemoya/3724727 to your computer and use it in GitHub Desktop.
resultslist archive.php
<?php
if(!is_ajax()) {
get_template_part('parts/header', 'results-list');
}
$post_type = get_query_var('post_type');
$post_type = (is_array($post_type)) ? $post_type[0] : $post_type;
loop('results-list', array($post_type, 'post'), 'parts', 'parts/no-results.php');
if(!is_ajax()){
get_template_part('parts/footer', 'widget');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment