Error on home page.
-
my site is https://airsoftownage.com
i have a featured article thing on my theme evid. if i select the catorgory and post i get the error on the main page and the rest of my theme is gone. Maybe it’s a div I’m not sure.
<div id="header2"> <div id="header3"> <div class="prev"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/previous-hover.png" class="prev-button" alt="previous" /> </div> <div id="sections"> <ul> <?php $my_query = new WP_Query('category_name=Featured Articles&showposts=5;'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <?php // check for thumbnail $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); // check for thumbnail class $thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true); // check for thumbnail alt text $thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true); ?> <?php // if there's a thumbnail if($thumb !== '') { ?> <li> <div class="featured" style="background-image: url(<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=277&w=858&q=50&zc=1);"> <div class="featured-inside"> <div class="post-info-featured">Posted by <?php the_author() ?> in on <?php the_time('m jS, Y') ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></div> <a href="<?php the_permalink() ?>" rel="bookmark" class="titles-featured" title="Permanent Link to <?php the_title(); ?>"><?php the_title2('', '...', true, '35') ?></a> <?php the_content_limit(170, ""); ?> <div style="clear: both;"></div> <div class="play-button"> <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>" class="play-button-hover"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/play-video-hover.png" style="margin: 0px 0px 0px 0px; border: none;" alt="post bottom" /></a> </div> </div> </div> </li> <?php } // end if statement // if there's not a thumbnail else { echo ''; } ?> <?php endwhile; ?> </ul> </div> <div class="next"> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/next-hover.png" class="next-button" alt="next" /> </div> </div>
there is the code it says the error is on line 27 I dont know. Please help me. Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error on home page.’ is closed to new replies.