LoganSorese
Member
Posted 6 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.
Joshua Sigar
Member
Posted 6 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
LoganSorese
Member
Posted 6 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. :)
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.
LoganSorese
Member
Posted 6 years ago #
That's perfect. Thank you for the fast post!