Display venue map, fix table and sports sorting, support player excerpts

This commit is contained in:
Brian Miyaji
2014-02-08 13:17:48 +11:00
parent 4c0f8c5126
commit c54bbade6d
12 changed files with 92 additions and 34 deletions

View File

@@ -1,13 +1,4 @@
<?php
function sportspress_the_posts( $posts ) {
global $wp_query, $wpdb;
if( is_single() && $wp_query->post_count == 0 && isset( $wp_query->query_vars['sp_event'] ) ) {
$posts = $wpdb->get_results( $wp_query->request );
}
return $posts;
}
//add_filter( 'the_posts', 'sportspress_the_posts' );
function sportspress_posts_where( $where, $that ) {
global $wpdb;
if( 'sp_event' == $that->query_vars['post_type'] && is_archive() )