Is there anyone that can help me out here please?! I'm not a WP guru..!
I cannot for the life of me figure out how to have the MOST RECENT POST be displayed FIRST on the main index.php!! I haven't had any luck... This is the code from the themes original index.php. If I wrote a post today and stuck it on there... I want it to display first... This is ordering it all out of wack!
Plz someone.... Help! LOL! I usually don't ask for much help but I need it! 2nd time I've come posted a question here in less than a week! God I hate PHP! That's why I stick with HTML/CSS! :p
Thank you in advance!
<!-- BEGIN content --> <div id="content"> <?php if (have_posts()) : the_post(); $arc_month = get_the_time('m'); $arc_day = get_the_time('d'); $arc_year = get_the_time('Y'); ?> <!-- begin recent post --> <div class="recent post"> <h2 class="title">Recent News</h2> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_content(''); ?> </div> <!-- end recent post --> <?php else : ?> <div class="notfound"> <h2>Not Found</h2> <p>Sorry, but you are looking for something that is not here.</p> </div> <?php endif; ?> <div class="posts"> <?php if (have_posts()) : while (have_posts()) : the_post(); $arc_month = get_the_time('m'); $arc_day = get_the_time('d'); $arc_year = get_the_time('Y'); ?> <!-- begin post --> <div class="post"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <a href="#"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '" class="thumbnail"'); ?></a> <?php the_excerpt(); ?> <div class="details"> <a href="<?php the_permalink(); ?>">READ MORE</a> <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> </div> </div> <!-- end post --> <?php endwhile; endif; ?>
"Whatever the mind can conceive and believe, the mind can achieve."