added categories
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 5 Feb 2016 18:16:43 +0000 (13:16 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 5 Feb 2016 18:16:43 +0000 (13:16 -0500)
home.php

index 8ebd4bd..0db8183 100644 (file)
--- a/home.php
+++ b/home.php
@@ -4,6 +4,20 @@
         <?php // GLM_get_header(); ?>
     </article> -->
     <div class="row">
+       <p>Categories</p>
+            <div id="category-menu">
+                <ul>
+                <?php
+                    $args = array(
+                    'orderby' => 'name',
+                    'order' => 'ASC'
+                    );
+                    $categories = get_categories($args);
+                    foreach($categories as $category) {
+                    echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> </li> ';  }
+                ?>
+                </ul>
+                    </div>
         <div id="blog-posts-over" class="small-12 medium-9 columns">
             <?php if(have_posts()) : while(have_posts()): the_post();?>
             <div class="row content blog-posts-container">