Jump to content

Wordpress Landing Page with post excerpts


Guest tagmarcom

Recommended Posts

Guest tagmarcom

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...