WP Code Working w/PHP 5.2, Not 5.4
-
Hi All,
My hosting provider is updating from PHP 5.2 to 5.4 and when they do this, the thumbnail images for posts stop displaying. I have the following code below:
<h2 class="front" style="margin:0;">More News</h2> <?php $features = new WP_query(); $features->query('showposts='.$mytheme['featuredn'].'&offset=3'); ?> <ul id="features"> <?php while ($features->have_posts()) : $features->the_post(); ?> <li> <div class="mfpost"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php show_thumb($width=$mytheme['featuredthumbW'],$height=$mytheme['featuredthumbH'],$crop='T',$quality=95,$blank=false); ?></a> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <p><span class="dates_more_news"><?php the_time('l, F jS, Y') ?></span></p> <p class="light_copy"><?php the_excerpt_reloaded($mytheme['featuredexcerptB'], '<a>', 'none', FALSE); ?></p> </div> <div class="clear"></div> </li> <?php endwhile; ?> </ul>
I’m not sure what is causing this and haven’t been able to fix it.
Any help would be greatly appreciated.
Thank you.
- The topic ‘WP Code Working w/PHP 5.2, Not 5.4’ is closed to new replies.