Skip to content

Instantly share code, notes, and snippets.

@georgeolaru
georgeolaru / listable-map-button.css
Last active March 20, 2017 16:29
Listable Mobile testing the View Map Button
.mobile-buttons .btn.btn--view-map span {
display: block;
}
.mobile-buttons .btn.btn--view-map:after {
right: 8px;
}
.mobile-buttons .btn--view-map {
  background: white;
function default_category_featured_image() {
global $post;
$featured_image_exists = has_post_thumbnail($post->ID);
if (!$featured_image_exists) {
$attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" );
if ($attached_image) {
foreach ($attached_image as $attachment_id => $attachment) {