Home > Enterprise >  While implementing this code on my wp-admin the content is okay but in the customers views the slide
While implementing this code on my wp-admin the content is okay but in the customers views the slide

Time:07-22

/img/scrubber-pov.png" id="pov-robot" alt="Robot Perspective" /> " style="background: url();"> /img/scrubber-pov.png" alt="Robot Perspective" />

CodePudding user response:

<?php if( have_rows('technology_slides') ):?>
    <div >
        <?php $slide_count = 1;
        while( have_rows('technology_slides') ): the_row(); 
            $slide_background = get_sub_field('slide_background');
            $slide_content = get_sub_field('slide_content');?>
            <div  id="slideNumber-<?php echo $slide_count;?>" style="background: url(<?php echo $slide_background['url'];?>);">
                
                <div >
                    <div >
                        <div >
                            <div >
                                <?php echo $slide_content;?>
                            </div>
                        </div>
                    </div>
                    <img src="<?php bloginfo('template_url'); ?>/img/scrubber-pov.png"  alt="Robot Perspective" />
                </div>
            </div>
            <?php $slide_count = $slide_count   1;?>
        <?php endwhile; reset_rows();?>
    </div>
<?php endif; ?>

CodePudding user response:

/img/scrubber-pov.png" id="pov-robot" alt="Robot Perspective" />
  • Related