WordPress.org

Ready to get started?Download WordPress

Forums

IE Refuses to Load style or ID tags and my most recent post (1 post)

  1. swieland
    Member
    Posted 2 years ago #

    Hi everyone. I've got a problem that only surfaces in IE8 and IE9, but not Firefox, Safari, or Chrome.

    On my webpage: http://www.idahobulletin.com, IE refuses to load my "#headline" and ".spost" id or class on the front page. These tags came with a free theme and apply a format to exerpts on the front page that link to full blog posts. The result is a front page without most of the formatting. IE also refuses to load my most recent post that should be appearing in that same box.

    I'm not having any header or sidebar issues. I tried installing the header tag to run in IE7 mode, but that made it worse.

    I suspect the problem lies in my "home.php" code, but I can't be sure:

    <div id="headline">
              <h3><?php _e('The Latest','cover-wp') ?></h3>
              <?php query_posts("caller_get_posts=1&showposts=6&cat=10"  ); $i = 6; ?>
              <?php if(have_posts()) : while(have_posts()) : the_post(); ?>
                <?php $words = 50;
                  $content = get_the_excerpt();
    	          $excerpt = explode(' ',$content); ?>
    		<div class="spost">
                    <h2><a href="<?php echo the_permalink(); ?>" title="<?php _e('Permanent Link to','cover-wp') ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                  <?php
    			    $words = display_thumbnail(95,80,$words,50);
    				if(count($excerpt) > $words) $count = $words;
    				else $count = count($excerpt); ?>
                    <p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> <a href="<?php echo get_permalink($post->ID) ?>"><?php _e('Read more','cover-wp') ?> »</a></p>
                  </div><!-- /spost -->
                  <div class="spbottom"></div>
              <?php endwhile; ?>

    Any help is genuinely appreciated. I don't have any background in web programming, so please speak down to me.

Topic Closed

This topic has been closed to new replies.

About this Topic