Urgent! Random formatting causing page to screw up!
-
Hi guys, I just released the brand new version of my site https://doubledance.ca and as you can see on the right side of the page at the top I have a section that displays the most recent posts in the Reviews section. It’s multiple recent posts, but they are hidden in a scroll box.
If you take a look at Image One below, you can see how it’s supposed to look, and if you look at Image Two, you can see what happens. Please note that the actual backgrounds of each post are set to be random. You’ll see what I mean:
Image One: https://img295.imageshack.us/img295/3364/reviewsboxgood.jpg
Image Two: https://img146.imageshack.us/img146/5419/reviewsboxbad.jpgAs you can see in image one, and hopefully on the live site is what’s supposed to happen, and in image two is what happens randomly, after no real changes to the website. See below for the code that I’m using to generate this section. Please note to generate the images I’m using the Get The Image plugin.
<div class=”recent-reviews r”>
<div class=”reviews-bar l”></div>
<div id=”user-submit-box”>
/about/#write”>
</div>
<div class=”reviews flexcroll”>
<?php query_posts(‘cat=481&posts_per_page=’ . get_option(‘optionRevstories’)); while (have_posts()) : the_post(); $data = get_post_meta( $post->ID, ‘review’, true ); ?>
” href=”<?php the_permalink(); ?>”>
<?php get_the_image( array( ‘width’ => ’77’, ‘height’ => ’77’, ‘image_scan’ => true, ‘link_to_post’ => false, ) ); ?>
<span class=”title”><?php echo $data[ ‘band’ ]; ?></span>
<span class=”album”><?php echo $data[ ‘album’ ]; ?></span>
<span class=”like”>Like: <?php echo $data[ ‘genre’ ]; ?></span>
<div class=”rating”><?php echo $data[ ‘overall’ ]; ?></div>
<?php endwhile; ?>
</div>
</div>Can someone help with this?
- The topic ‘Urgent! Random formatting causing page to screw up!’ is closed to new replies.