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
/* | |
Theme Name: THEME NAME | |
Theme URI: VSELLIS | |
Description: VSELLIS shoreline description. | |
Version: 1.0 | |
Author: VSELLIS | |
Author URI: vsellis.com | |
Template: genesis | |
*/ |
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 () { | |
'use strict'; | |
}()); |
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 get_tax_options( $taxonomy, $field ) { | |
$terms = get_terms( $taxonomy ); | |
$current = ( isset($_POST[$field]) ) ? $_POST[$field] : ''; | |
$options = array(); | |
$options[] = '<option value="">-- ' . ucwords( $taxonomy ) .' --</option>'; | |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ | |
foreach ( $terms as $term ) { | |
$options[] = sprintf( '<option value="%s" %s>%s</option>', $term->slug ,selected( $current, $term->slug ), $term->name ); | |
} |
NewerOlder