Skip to content

Instantly share code, notes, and snippets.

Luke Michaels LukeMichaels

Block or report user

Report or block LukeMichaels

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
LukeMichaels / wordpress-loop-posts-in-category.php
Created Dec 18, 2015
Loop posts from specific category 'cat' => 18 // the category ID # 'showposts' => 16 // the # of posts to display
View wordpress-loop-posts-in-category.php
/* remove `post_type` if not using a custom post type */
<?php query_posts( array( 'post_type' => 'your_category_title', 'cat' => 18, 'showposts' => 16 ) );
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php echo $post->post_title; ?></h2>
<p><?php the_content(); ?></p>
<a href="<?php echo get_permalink($post->ID); ?>">link</a>
<?php endwhile; endif; wp_reset_query(); ?>
View Asset.txt
<style type="text/css"> @import "<<**SelectionInsertionPlaceholder**>>"; </style>
LukeMichaels /
Created Mar 10, 2014 — forked from jookyboi/
CSS libraries and guides to bring some order to the chaos.


  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.


LukeMichaels / 0_reuse_code.js
Created Mar 10, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.