PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in single.php
-
Looking all over and no real clear answer or solution to this error i am seeing in my error_log.
PHP Parse error: syntax error, unexpected ‘echo’ (T_ECHO) in single.php on line 15.
I am using Advanced Custom Field Plug in, all other pages work, but I cannot find out why it is giving me the (T_ECHO) error.
<?php get_header(); $format = get_post_format(); ?> <!-- single.php - 03312016-gmd --> <!-- == == == == == == == == == == == == == == B: ** HERO IMAGE DISPLAY ** == == == == == == == == == == == == == == --> (line 15 ==>) <div style="display:<?php the_field('display_hero_image');?>;" class="product-hero-image"><img src="<?php the_field('hero_image'); ?>" alt="<?php the_field('hero_image_description'); ?>" title="<?php the_field('hero_image_description'); ?>"></div> <div class="wrapper section no-padding"> <?php get_sidebar(); ?> <div class="section-inner"> <div class="content fleft"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ($format == 'quote' || $format == 'link' || $format == 'audio' || $format == 'status' || $format == 'chat') : ?> <?php if ( has_post_thumbnail() ) : ?> <div class="featured-media"> <?php the_post_thumbnail('post-image'); ?> <?php if ( !empty(get_post(get_post_thumbnail_id())->post_excerpt) ) : ?> <div class="media-caption-container"> <p class="media-caption"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></p> </div> <?php endif; ?> </div> <!-- // .featured-media --> <?php endif; ?> <?php endif; ?> <div class="post-header">
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in single.php’ is closed to new replies.