Home › Forums › General Issues › Illegal String Offset
Hi There,
I am getting an illegal string offset warning in the ‘alt’ tag on line 15. I don’t understand why?
Line 15 <a id="fancybox-css" href="#img1"><img src="<?php echo $image['url']; ?>" class="thumbnail11" alt="<?php echo $image['alt']; ?>"></a>
Full Code ‘<div class=”<?php echo esc_attr($holder_class) ?>”>
<div class=”mkdf-grid-row-medium-gutter”>
<div class=”mkdf-grid-col-8″>
<?php echo mkdf_tours_get_tour_module_template_part(‘single/single-item’, ‘tours’, ‘templates’, ”, $params); ?>
</div>
<div class=”mkdf-grid-col-4″>
<aside class=”mkdf-sidebar”>
<?php dynamic_sidebar(‘social-media’); ?>
<?php echo voyage_mikado_get_social_share_html(); ?>
<div class=”widget mkdf-tours-booking-form-holder”>
<?php $image = get_field(‘map’); //if(mkdf_tours_is_tour_bookable()) : ?>
<?php //echo mkdf_tours_get_tour_module_template_part(‘single/booking-form’, ‘tours’, ‘templates’, ”, $params); ?>
<?php //endif; ?>
<!– change structure for lightbox –>
” class=”thumbnail11″ alt=”<?php echo $image[‘alt’]; ?>”>
” alt=”<?php echo $image[‘alt’]; ?>”>
<?php the_field(‘to_from’); ?>
</div>
<?php dynamic_sidebar(‘tour-single-sidebar’); ?>
</aside>
</div>
</div>
</div>
<script type=”text/javascript”>
jQuery(‘.thumbnail11’).on(‘click’, function(){
jQuery(‘body’).addClass(‘light_index’);
});
jQuery(‘.lightbox’).on(‘click’, function(){
jQuery(‘body’).removeClass(‘light_index’);
});
</script>`
The topic ‘Illegal String Offset’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.