Skip to content

Instantly share code, notes, and snippets.

@yratof
yratof / gist:4f312ae162f49876959c
Last active August 29, 2015 14:03
Barley Custom Field
function barley_field($field_name){
$key_values = get_post_custom_values( $field_name );
foreach ( $key_values as $key => $value ) {
if ( function_exists( 'barley_wrapper' )) {
echo barley_wrapper('wp_custom_field', $value , $field_name);
} else {
echo $value;
}
}
}
@Jakobud
Jakobud / bootstrap-ms.scss
Last active June 15, 2022 12:42 — forked from andyl/bootstrap_ms.css.scss
Adds in the missing 480px-797px breakpoint range to Bootstrap 3 for SASS
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
//
// This is a hack to fill the gap between 480 and 767 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
//
// Contains:
// Columns, Offsets, Pushes, Pulls for the Mid-Small layout
// Visibility classes for the Mid-Small layout
// Redefined visibility classes for the Extra Small layout