remove featured image from ai1ec post type
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 29 Feb 2016 19:47:36 +0000 (14:47 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 29 Feb 2016 19:47:36 +0000 (14:47 -0500)
single.php

index 15b962e..8a815ff 100644 (file)
@@ -33,6 +33,7 @@
                                 <header class="entry-header">
                                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
                                    <?php
+                                    if(get_post_type ($post) != "ai1ec_event" ){
                                         if (has_post_thumbnail()) {
                                                 $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), "full");
                                                 echo '<div class="blog-featured" style="background-image:url('.$image_data[0].');"></div>';
@@ -59,6 +60,7 @@
                                     echo '.</b>';
                                     ?>
                                     </div>
+                                    <?php } ?>
                                   
                                 </header>
                                 <?php if (!is_post_type("ai1ec_event")) { ?>