Titles show up for single events (posts)
authorLaury GvR <laury@gaslightmedia.com>
Fri, 4 Sep 2015 17:56:57 +0000 (13:56 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 4 Sep 2015 17:56:57 +0000 (13:56 -0400)
single.php

index e2b4c28..4ce203d 100644 (file)
@@ -5,6 +5,10 @@
                 <?php if(have_posts()) : while(have_posts()): the_post();?>
                 <div class="row blog-post-container">
                     <div class="small-11 small-centered columns">
+                        <?php if (get_post_type( $post ) == "ai1ec_event") {
+                            echo "<h1>" . get_the_title() . "</h1>";
+                        }
+                        ?>
                         <div class="row">
                             <div class="small-12 columns">
                                 <article id="<?php the_ID()?>" <?php post_class()?>>