Hey everybody I want to let you know that I have undertaken the grueling task of getting the heck away from WordPress. I was so sick of the problems and updates I had to do all the time. I am now using my ezbloo system and I am integrating all my old posts into the new system. It sucks, but in the end, I will save bundles of time. I needed to keep things simple and that is why I created ezbloo. I'll have more on this later for you guys after I am done with the total integration of my old posts here. So if you are looking for a post and need it faster, shoot me an email and I will make it a priority. [email protected]

So there is a little code that you can use to query the posts then show the last post on a page. in this particular code we are ordering by date and grabbing the last post that was made according to the date. The following code will grab:
  1. The Permalink
  2. The title
  3. The Excerpt
  4. The Featured image
 
<?php $the_query = new WP_Query( 'posts_per_page=1&order=DESC&orderby=date' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>

<div class="entry">
 <a href="<?php echo get_post_permalink();?>">
<h3><?php the_title(); ?></h3>

 <?php $feat_image = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); 
 echo '<img src="'.$feat_image.'"/>'; ?>
 <?php the_excerpt(); ?></a>
  </div>

<?php endwhile; wp_reset_postdata(); ?>