Code change to fix slider? WordPress 3.4.2 (not a plugin)
-
My slider in my theme stopped working when I upgraded to WordPress 3.4.2. Below is the code. Can someone please help? Thank you!
<header> <div id="fwslider"> <?php if(of_get_option('slide2_1') or of_get_option('slide2_2') or of_get_option('slide2_3')) { for($i=1;$i<=3;$i++) { if(of_get_option('slide2_'.$i)) { if(of_get_option('slidelink2_'.$i)) echo ' <a href="' . of_get_option('slidelink2_'.$i) . '"> <img src="' . of_get_option('slide2_'.$i) . '" /> </a> '; else echo ' <img src="' . of_get_option('slide2_'.$i) . '" /> '; } } for($i=4;$i<=9;$i++) { if(of_get_option('slide2_'.$i)) if(of_get_option('slidelink2_'.$i)) echo ' <a href="' . of_get_option('slidelink2_'.$i) . '"> <img src="' . of_get_option('slide2_'.$i) . '" /> </a> '; else echo ' <img src="' . of_get_option('slide2_'.$i) . '" /> '; } } else { echo ' <a href="https://themeforest.net/user/KarmaThemes/portfolio"><img src="https://www.karmathem.es/quality/wp-content/themes/quality/images/sliderimg.jpg" /></a> <a href=""><img src="https://www.karmathem.es/quality/wp-content/themes/quality/images/sliderimg2.jpg" /></a> <a href=""><img src="https://www.karmathem.es/quality/wp-content/themes/quality/images/sliderimg3.jpg" /></a> '; } ?> </div> </header>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Code change to fix slider? WordPress 3.4.2 (not a plugin)’ is closed to new replies.