The Loop: posting only the most recent post to a static homepage
-
I’m having some issues writing the loop for my wordpress site. There will be a static homepage that will contain the header, footer, top navigation bar, a containing holding some navigation buttons that will only be visible on the home page, and then a smaller container to the right of that one that will hold a small snippet/excerpt of my most recent blog post.
I am starting to get really frustrated when I try to write the loop for the single blog post. I want to show the blog title that links to the post, the authors name, the excerpt, a link that says “Read the rest of this entry”, the number of comments, and a link to leave a comment. I do not want a list of comments to appear on the homepage though.
I have been able to get the title, the authors name and an excerpt of the blog, but it shows an excerpt for all of my entries, and like I said, I only want one. Can someone please give me some pointers or help me write the code for my loop?
*I will have a separate page designated to showing all blog posts, so I’m assuming that will be a completely different loop. I’m only focused on the first loop as of now.
- The topic ‘The Loop: posting only the most recent post to a static homepage’ is closed to new replies.