Displaying most recent post on static page
-
Hey, guys,
I recently finished building my first custom theme, so I’m still new to some aspects. My website starts with a front-page.php (static page), which then can lead to index.php (blog feed).
I’d like to be able to pull and display the title and excerpt for the most recent post (that’s the easy part) on the static page, but the index.php template is pulling the content from a page within WordPress, so I’m not sure how to interject this. If the content was in the template file, I could see how.
What would be the best way to add a loop to pull the most recent post in my scenario? Thanks in advance.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Displaying most recent post on static page’ is closed to new replies.