post preview/thumbnails not displaying correctly- linking to “home” instead of post?

It sounds like you need a second loop on your home page to call the 3 most recent posts. Try something like this: // Main home page content here <?php $my_query = new WP_Query( array( ‘posts_per_page’ => 3, ‘nopaging’ => true ) ); while ( $my_query->have_posts() ) : ( $my_query->the_post() ); ?> <div id=”preview”> <div … Read more

How to add a recent post function to a text widget I created for practice?

In the function widget( $args, $instance ), which generates the widget output, add the following code before the echo $after_widget; line: // The Query $the_query = new WP_Query( array( ‘post_type’ => ‘page’, ‘posts_per_page’ => ‘3’ ) ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); echo ‘<li>’ . get_the_title() . ‘</li>’; endwhile; Additional information … Read more