WordPress.org

Ready to get started?Download WordPress

Forums

Last Modified Post on homepage instead of Recent (1 post)

  1. universalguy
    Member
    Posted 1 year ago #

    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">
    			<?php
          $i = 0;
    				while (have_posts()) : the_post();
    				$i++;
    			?>
    
    			<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 {
    					unset($img);
    					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 ]

Topic Closed

This topic has been closed to new replies.

About this Topic