This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="get" id="searchform" action="<?php echo home_url(); ?>/"> | |
<label class="hidden" for="s"><?php _e('', 'comienzo'); ?></label> | |
<input type="search" class="text" value="search site" name="s" id="s" /> | |
<select name="sport"> | |
<option value="" />Choose sport</option> | |
<?php | |
$metakey = 'sfn_tan_choose_sport'; | |
$sports = $wpdb->get_col($wpdb->prepare("SELECT DISTINCT meta_value FROM $wpdb->postmeta WHERE meta_key = %s ORDER BY meta_value ASC", $metakey) ); | |
if ($sports) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function tan_athlete_search_page(){ | |
if( isset($_GET['sport']) ) { | |
$sport = $_GET['sport']; | |
$sportquery = array( 'key' => 'sfn_tan_choose_sport', 'compare' => 'like', 'value' => $sport ); | |
} else { | |
$sportquery = ''; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Load any taxonomy terms | |
*/ | |
function load_cpt_choices($post_type, $type, $first_choice = '', $term) { | |
$choices = array(); | |
if ($type === 'select') { | |
$posts = get_posts('post_type='.$post_type.'&numberposts=-1&school_type='.$term); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tan_show_related_content( $postid, $post_type ) { | |
global $wp_query, $post; | |
// Related IDs for this view ? | |
$ids = rpt_get_object_relation( $postid, $post_type ); | |
if( $ids == false || empty($ids) ) | |
return false; | |
$items_query = new WP_Query( array( | |
'post__in' => $ids, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config/app_config.yml | |
config/database.yml | |
config/*.sphinx.conf | |
config/s3_credentials.yml | |
*~ | |
*.cache | |
*.log | |
*.pid | |
tmp/**/* | |
.DS_Store |
NewerOlder