Skip to content

Instantly share code, notes, and snippets.

Corey Ellis zzramesses

Block or report user

Report or block zzramesses

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zzramesses
zzramesses / Off-Canvas WordPress Menu Output
Last active Jan 26, 2018
Foundation Off-Canvas WordPress Menu
View Off-Canvas WordPress Menu Output
<aside class="left-off-canvas-menu">
<?php wp_nav_menu(
array(
'theme_location' => 'the menu you want to use',
'container' => false,
'menu_id' => '',
'menu_class' => 'off-canvas-list',
'walker' => new Off_Canvas_Walker()
)
);
View .gitignore
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
View HMC Clause Custom Metaboxes
// display the top local, top unique and key varietals metaboxes in the admin area
public static function local_meta_box_display( $post, $metabox ) {
$prefix = $metabox['args']['name'];
$child_regions = hmc_get_child_regions();
$current_regions = array();
if ( get_the_terms( $post->ID, 'local_highlights' ) ) {
$current_regions = wp_list_pluck( get_the_terms( $post->ID, 'local_highlights' ), 'name' );
}
View gist:9196918
// make downloads hierarchical
function thesrpr_edd_make_hierarchical($download_args ) {
$download_args[] = array(
'hierarchical' => true
);
return $download_args;
}
add_filter( 'edd_download_post_type_args', 'thesrpr_edd_make_hierarchical' );
@zzramesses
zzramesses / gist:9045653
Created Feb 17, 2014
wordpress redirect
View gist:9045653
<?php header("HTTP/1.1 301 Moved Temporarily"); header("Location: ".get_bloginfo('url')); exit(); ?>
You can’t perform that action at this time.