Featured image hide from event template
-
Hi,
I have my header file calling banner images from the ‘featured image’ section. So when I installed this plug in, I noticed you use the same to get the image to display in the list view. But now that image ALSO displays as my banner image.I tried adding this code to my header file which works w/ out a featured image but once i add that featured image (so it will display in the list view), it overwrites the top banner:’
<div id="featuredImage"> <?php if ( has_post_thumbnail() && !is_page_template('/wp-content/plugins/the-events-calendar/views/default-template.php')) :?> <?php the_post_thumbnail(); ?> <?php else : ?> <img class="attachment-post-thumbnail wp-post-image" width="1200" height="512" alt="banner_membership" src="/wp-content/uploads/banner_events.png"> <?php endif; ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Is there a way to show everything that’s in the body of the content including the image so I don’t have to use a featured image on every event?
- The topic ‘Featured image hide from event template’ is closed to new replies.