WordPress.org

Ready to get started?Download WordPress

Forums

Including blog posts in page not inside WP (5 posts)

  1. LoganSorese
    Member
    Posted 7 years ago #

    I'm setting up a portfolio and on the main page I want to include the newest post in the blog. The main page is not attached to the blog in any way. Is there a way to include it, either making a new page template or something more involved, I don't care I just need a way to do it.

    Thanks guys, this place has always saved me.

  2. Joshua Sigar
    Member
    Posted 7 years ago #

    You could create a new Page with a page template and use that as your homepage. The following plugin may be useful.
    http://www.semiologic.com/software/static-front/

    Now, in the page template, you need that loop thingy going on.
    http://codex.wordpress.org/Template_Tags/query_posts

  3. LoganSorese
    Member
    Posted 7 years ago #

    Well, I don't want the home page of the blog itself to be static, I want to include the newest post of a blog in a page not attached to WP. As far as I can tell that plugin isn't doing it. :)

  4. Chris_K
    Member
    Posted 7 years ago #

    Or look at this section on integrating WP with your site.

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress

    Add a "mini loop" (see The_Loop for more on that) to your non-WP pages to pull in posts.

  5. LoganSorese
    Member
    Posted 7 years ago #

    That's perfect. Thank you for the fast post!

Topic Closed

This topic has been closed to new replies.

About this Topic