Support » How-To and Troubleshooting » Last Modified Post on homepage instead of Recent

Last Modified Post on homepage instead of Recent

  • hello, i have this problem, in my blog i have kind of 100 posts, and i usually update a couple of them every day without adding any new post.

    In my home page instead i get only the recent post, so my visitors can’t understand what’s new…

    so i would like to change it, in the way people can’t see the last modified one..
    i m not php expert, i post here the “recent_post.php” code of my theme, i ll appreciate any help. thanks.

    <?php wp_reset_query(); ?>
    	<div id="content">
    	<div id="postFuncs">
    	  <div id="funcStyler"><a href="#" class="switch_thumb"></a></div>
              <?php if (is_category()) {
               $cat_ID = get_query_var('cat'); ?>
              <?php echo '<h2>'; wpzoom_breadcrumbs(); echo'</h2>'; ?><?php }
                elseif (!is_category() && !is_home()) { ?>
                <?php echo '<h2>'; wpzoom_breadcrumbs(); echo'</h2>'; ?>
                <?php }
                else { ?>
                <h2>Ultimi Aggiornamenti Serie TV</h2>
                <?php } ?>
    	</div><!-- end #postFuncs -->
    	<div id="archive">
    	<?php if (have_posts()) : ?>
    		<ul class="posts posts-3 grid">
          $i = 0;
    				while (have_posts()) : the_post();
    			<li<?php if ($i == 5) {$i = 0; echo " class=\"last\"";} ?>>
    				<?php unset($img); if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
    					$thumbURL = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), '' );
    					$img = $thumbURL[0];  }
    				else {
    					if ($wpzoom_cf_use == 'Yes')
    					  $img = get_post_meta($post->ID, $wpzoom_cf_photo, true);

    [Bump deleted – http://codex.wordpress.org/Forum_Welcome#No_Bumping ]

  • The topic ‘Last Modified Post on homepage instead of Recent’ is closed to new replies.