Forums

[resolved] Retrieving the most recent blog post title (4 posts)

  1. ryers
    Member
    Posted 1 year ago #

    Hello all,

    I'm currently developing a custom theme for a freelance writer. On the home page, I have a section that links the most recent Twitter post, contact info, and would like to show the most recent post title in the section "From the Blog". All I want to do is retrieve the most recent blog post, and put it into an <h3> tag. I don't currently have any code to share as I realized quickly this is a stretch above my knowledge.

    Any suggestions? Thanks!

  2. ClaytonJames
    Member
    Posted 1 year ago #

    Take a look at the information in this article and see if looks like something that might be useful.

    Function Reference/wp get recent posts

  3. ryers
    Member
    Posted 1 year ago #

    Perfection! Exactly what I needed.

    Thank you very much ClaytonJames. I suppose I could've been more savvy searching the WP codex archives.

  4. ClaytonJames
    Member
    Posted 1 year ago #

    You're welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic