Guest tagmarcom Posted March 29, 2011 Report Share Posted March 29, 2011 First a little background information on what I currently have set up to (hopefully) make my question more clear. I am currently working on a site for a client that has a static landing page and a wordpress blog. When visiting the site, the user arrives at the home page (which is my static landing page) than they can click to the blog, or a few other choices from the navigation. I created a custom template for the home page and one for the blog. The blog and all pages work great, with exception to the homepage. The home page does display but only shows a portion of the information I am trying to display. In the third column of the home page, I would like to display excerpts from the last few posts in the blog. The format would be: title (link to post) date by author(link to posts by this author) excerpt ....read more (link to post) What I currently have, which can be seen at http://www.alsgreensolutions.com/ is the following: title (link to post) date by <ul> <?php rewind_posts(); global $post; $myposts = get_posts('numberposts=3&orderby=date&order=DESC'); foreach($myposts as $post) : ?> <li> <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link(); ?> </small><br/> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br/> <?php the_excerpt(); ?> </li> <?php endforeach; ?> </ul> I have also included my entire home_template.php file in case that helps. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.