Apache to ISS
-
Hi,
I designed a WP theme on an Apache server and I’ve now moved it over to an IIS server for my client.I fixed the permalinks situation, so I think the permissions are fine. But I have a few template files with a php loop:
<?php for($i=1; $i<7; $i++){ //loop 6 times if(get_field('image_' . $i)){ //check if there is an image on each iteration of the loop echo' <a href="' . get_field('image_' . $i) . '"';?> rel="lightbox[<?php the_title(); ?>]"> <? echo' <img src="' . get_field('image_' . $i) . '"/></a>'; //output results } } ?>
If the loop is there, I get a blank page. Nothing at all.
If I remove it, everything works fine.I have a similar code loop on the homepage and it works fine.
Any help would be greatly appreciated.
PS:
The code pulls custom variables from posts (to display images) of a particular category.Again, it works fine on Apache.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Apache to ISS’ is closed to new replies.