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:
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 | |
$args = array(); | |
$args['wp_query'] = array( 'post_type' => array('page', 'field', 'param'), | |
'orderby' => 'title', | |
'order' => 'ASC' ); | |
$args['fields'][] = array( 'type' => 'search', | |
'placeholder' => 'Enter search terms' ); | |
$args['fields'][] = array( 'type' => 'post_type', | |
'format' => 'checkbox', | |
'label' => 'Search by post type', |
# Add to bashrc file | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1='[\u@\h \w\[\033[32m\]$(parse_git_branch)\[\033[00m\] \t] $' # Edit formatting to your liking |
<?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 ); | |
<?php | |
/** | |
* Returns an array of dates in which content has been published | |
* | |
* @param string $date_type 'day', 'month', or 'year' | |
* @param string $format PHP date format string | |
* @param string $post_type Post type to get dates for | |
* @return array Array of dates in which content has been published | |
*/ |
<?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. | |
* | |
*/ |