I hereby claim:
- I am raideus on github.
- I am raideus (https://keybase.io/raideus) on keybase.
- I have a public key ASC2JzNRy56Iy5oA78fOYFdtBGxDtNbBZ3p3h3rrHhNnDAo
To claim this, I am signing this object:
<?php | |
/** | |
* Automated PHP export for Advanced Custom Fields | |
* | |
* Export is initiated whenever an admin publishes a new field group | |
* or saves changes to an existing field group. | |
* | |
* Place this code in your theme's functions.php file. | |
* | |
*/ |
I hereby claim:
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 1BfsoDFqqraqgVYEBc3AMnmFJSbN2ZTJhM https://explorer.blockstack.org/address/1BfsoDFqqraqgVYEBc3AMnmFJSbN2ZTJhM |
<?php | |
/** | |
* Return a custom field stored by the Advanced Custom Fields plugin | |
* | |
* @global $post | |
* @param str $key The key to look for | |
* @param mixed $id The post ID (int|str, defaults to $post->ID) | |
* @param mixed $default Value to return if get_field() returns nothing | |
* @return mixed | |
* @uses get_field() |
<?php | |
$args = array( | |
'orderby' => 'name', | |
'hide_emppty' => 1, | |
'hierarchical' => false, | |
'taxonomy' => 'gs_topics' | |
); | |
$topics = get_terms($args); | |
foreach ($topics as $topic) : |
$('.selected-term').click(function() { | |
var rel = $(this).attr('rel'); | |
$('input[value="'+rel+'"]').attr('checked',false); | |
$(this).remove(); | |
$('#wp-advanced-search').submit(); | |
}); |
<?php | |
function gs_selected_criteria() { | |
$terms = array(); | |
$search = new WP_Advanced_Search(); | |
$taxonomies = $search->selected_taxonomies; | |
if ($taxonomies) { | |
$output = '<div class="selected-terms">SELECTED CRITERIA</div>'; | |
foreach ($taxonomies as $taxonomy => $terms) { |
<?php | |
function gs_scripts_styles() { | |
$version = '1'; | |
if (defined('WP_DEBUG') && WP_DEBUG) $version = date('his'); | |
elseif (defined('ENV_STAGING') && ENV_STAGING) $version = date('his'); | |
wp_enqueue_style( 'gs-theme-styles', get_template_directory_uri() . '/style.css', array('gs-grid-styles'), $version, 'all' ); | |
wp_enqueue_script( 'gs-scripts', get_template_directory_uri() . '/js/scripts.js', array( 'modernizr', 'jquery' ), $version, true ); | |