I'm trying to link my visitors to my newest post on my website. I want them to view the post in their entirety but I have been searching and searching for a day now and cannot find the solution.
I found this code on the forums but it only displays info such as date and title of the newest post.
<?php $postslist = get_posts('numberposts=1'); ?> <?php foreach ($postslist as $post) : setup_postdata($post); ?> <li class="lnk2"> <?php the_date(); ?><br /><?php the_title(); ?> </li> <?php endforeach; ?>
Does anyone have a solution? =(