This file contains hidden or 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
I hereby certify that I am over the age of eighteen years and understand the nature and scope of the risks and dangers associated with playing the game of soccer. I understand that it is not the function of the United States Soccer Federation (USSF) and its affiliates, or the Virginia Soccer Alliance (VSA) and it's member clubs to guarantee the safety of participants in the game. I further understand that each individual participant bears full responsibility to exercise due care in the performance of this activity for the safety of themself and other participants. | |
I am aware that my participation or that of my minor children includes a risk of possible exposure to and illness from infectious diseases including but not limited to MRSA, influenza, and COVID-19; and that while particular rules and personal discipline may reduce this risk, the risk of serious illness and death does exist; and I KNOWINGLY AND FREELY ASSUME ALL SUCH RISKS, both known and unknown, EVEN IF ARISING FROM THE NEGLIGENCE OF THE RELEASEE |
This file contains hidden or 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
/** | |
*Get distinct values of custom field from post type | |
* | |
*@return void | |
*@since 0.1 | |
*/ | |
function get_distinct_from_post_type ( $field, $post_type ) { | |
global $wpdb; | |
$sql = "SELECT DISTINCT meta_value FROM $wpdb->postmeta pm, $wpdb->posts p WHERE meta_key = '$field' AND pm.post_id=p.ID AND p.post_type='$post_type' ORDER BY meta_value"; | |
return $wpdb->get_results( $sql, ARRAY_A ); |
This file contains hidden or 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
// populate acf field (sample_field) with post types (sample_post_type) | |
function acf_load_sample_field( $field ) { | |
$field['choices'] = get_post_type_values( 'sample_post_type' ); | |
return $field; | |
} | |
add_filter( 'acf/load_field/name=sample_field', 'acf_load_sample_field' ); | |
function get_post_type_values( $post_type ) { | |
$values = array(); |
This file contains hidden or 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 | |
$meta_args = array( array( 'key' => 'featured', 'value' => '"yes"', 'compare' => 'LIKE' ) ); | |
$args = array( 'post_type' => 'event', 'post_status' => 'future', 'order' => 'ASC', 'orderby' => 'date', 'meta_query' => $meta_args ); | |
$featured = new WP_Query( $args ); | |
?> | |
<?php if ( $featured->have_posts() ): ?> | |
<?php while ( $featured->have_posts() ): $featured->the_post(); ?> | |
<!-- loop here --> |
This file contains hidden or 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 get_image_src( $id = 0, $size = '', $default_id = 50 ) { | |
$src = ''; | |
// get src of attachment id | |
if ( $id > 0 ) { | |
list( $src, $width, $height ) = wp_get_attachment_image_src( $id, $size ); | |
} |
This file contains hidden or 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 | |
// hook into WordPress wp_enqueue_scripts action with a high priority | |
// so our function is the last to run | |
add_action( 'wp_enqueue_scripts', 'theme_enqueue_assets', 99999 ); | |
// function that enqueues our CSS & JavaScript | |
function theme_enqueue_assets() { |