I have a WordPress Homepage and a Blog Page. Somehow I would like to have the latest/most recent blog post to be on the homepage. I tried googling and inserting a few php codes but none seemed to work.
Anyone know of a quick tutorial or solution to this?
Here’s my problem though, my index.php is for domain.com/blog and not domain.com. So if I change anything to the index.php file, it changes the blog page. Would I have to create a seperate php file for my home page or?
I have these pages made on wordpress
-Home (My “front page”)
-Blog (Where My Blog Posts are set at on my settings)
-Services (Services Page)
-Portfolio (Portfolio Page)
-Contact (Contact Page)
I always prefer the second option, someone else might be able to advise you better on a way to achieve it using the first way though. One option could be to pull the latest post using RSS, although there may be a better way.
ahh, what you need to do is the query posts as Johnny suggested and create a separate page for your homepage and your blog, page-slug.php, slug being the title of the page, created in wp admin, then have your index be a basic loop, with links to header and footers as index.php is mainly a fallback if there isn’t any other pages for them to use, so if there isn’t a single.php, or a page.php, they fall back to index.php. check out template hierarchy here: