Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on September 18, 2015 at 08:33 AM

Section 1 (PHP)

/**
        * GET SUB CATS FROM A POST
        */
        $args = array('child_of' => 7  , 'hide_empty' => 0);
        $categories = get_categories( $args );

        foreach($categories as $category) {
          echo '<div class="col">';

          // Get POSTS from categor to grab the image.
          $args = array('category' => $category->ID);
          $posts = get_posts($args);

          foreach ($posts as $post){
            var_dump($post);
          }

          echo '<h3>

          <a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a>
          </h3>';


          echo '</div>';
        }
        ?>