How to show most recent post on main page?
-
This is probably a very simple question, but I haven’t been able to figure it out.
I have a main page (index.html) that I would like to have the one most recent post appear on. Then I would like all the rest of the posts to appear normally on the blog page (let’s just call that “news.html” or “news.php.”) How exactly do I do this?
Also on this main page, I would also like to include in the sidebar links to the 5 most recent posts, and links to the categories.
Also, where does WP need to installed to do this? Right now I have it installed in my root directory. However, I want to name the blog “news” and have “index” be my main page, with just the one most recent post. So will this work with WP installed on the root directory?
Here are my files, in case this helps:
This is my main page: https://moon4schools.com/
This is where I want to put the one most recent post.
Then I have this page, which would contain all the posts: https://moon4schools.com/news.php
Another problem I am having (on the second page) is that my permalinks are not working – when you click on an item’s heading, which should bring you to that post’s permanent page, it is just taking be back to my index page. Same thing when you click on any of the links in the sidebar.
Thank you very much for your help!
- The topic ‘How to show most recent post on main page?’ is closed to new replies.