WordPress.org

Ready to get started?Download WordPress

Forums

Upgraded WordPress .. excerpt not working? (1 post)

  1. Yerath
    Member
    Posted 1 year ago #

    Hey guys,

    I upgraded my site to wordpress 3.5 and now my blog's arent cut off. The function "the_excerpt" is not responding i think.

    Here is my template for the homepage.

    if (have_posts()):
    	while (have_posts()):
    		the_post();
    		if ($x >= 7) {
    			break;
    		} // sticky posts was adding an extra post
    		if ($x == 1) {
    			echo '<div class="LatestPostsRow" id="latest-posts-row1"> <!-- start div -->';
    		}
    		if ($x == 4) {
    			echo '<div class="LatestPostsRow" id="latest-posts-row2"> <!-- start div -->';
    		}
    ?>
    				<div class="LatestPost" id="latest-post<?php echo $x; ?>">
    					<a class="LatestPicture" href="<?php the_permalink() ?>">
    						<?php
    		$id = get_the_ID();
    		$thumbnail = get_the_post_thumbnail();
    		$first_post_image = get_first_image_in_post();
    		$itdr_mini_post_width_num = ($body_width_inner_num - 40) / 3;
    		if (empty($thumbnail)) {
    			if ($first_post_image["height"] != "") { ?>
    								<img src="<?php echo $first_post_image['source']; ?>" width="<?php echo $itdr_mini_post_width_num; ?>" height="<?php echo ($first_post_image['height'] / $first_post_image['width'] * $itdr_mini_post_width_num); ?>" />
    						<?php
    			} elseif ($itdr_default_post_image_asset["source"] != "") { ?>
    								<img src="<?php echo get_option('siteurl') . "/" . $itdr_default_post_image_asset["source"]; ?>" width="<?php echo $itdr_mini_post_width_num; ?>" height="<?php echo ($first_post_image['height'] / $first_post_image['width'] * $itdr_mini_post_width_num); ?>" />
    						<?php
    			}
    		} else { ?>
    							<?php echo $thumbnail; ?>
    						<?php
    		} ?>
    					</a>
    					<div class="LatestTitleComment">
    						<h3 class="LatestTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
    						<div class="Clear"></div>
    					</div>
    					<div class="LatestExcerpt"><?php the_excerpt();	 ?></div>
    					<div class="LatestCategories"><?php the_category(', ') ?></div>
    					<div class="Clear"></div>
    				</div> <!-- LatestPost -->
    <?php
    		if ($x == 3 || $x == 6) {
    			echo '<div class="Clear"></div></div> <!-- end div -->';
    		}
    		$x++;
    	endwhile;
    endif;
    wp_reset_query();

    Could somebody tell me what i'm doing wrong here?

Topic Closed

This topic has been closed to new replies.

About this Topic