custom home page plus blog address page
-
We are planning a blog using wordpress as a CMS. The requirements are:
1. Home page contains a fixed “About” page PLUS links to the last five blog posts.
2. On the top menu, a separate link to the usual Blog format.
a1. Running the latest version of WP, so experimented with using a static page as the home page. That happily displayed the About page, but what would be the best way of getting the extra php to run at the bottom of that page, to include links and extracts of the last 5 blog posts? Does it require a plugin to run extra php on the page? Will I be able to format it the way we’d like?
a2. Is there a URL I could use to link directly to the normal blog format, given that I have already hijacked the home page with the About page?
– Experimented using permalink variations – eg mysite.com/blog/month/post-name, hoping that i could link to mysite.com/blog, but that didn’t work – got page not found.
– Experimented using a custom template on a page. So created a page called mysite.com/blog/. Copied the code from index.php and called it blogpage.php. It is using it – I added comments. But it still just displays the content of the /blog/ page, rather than executing the loop.Any suggestions?
- The topic ‘custom home page plus blog address page’ is closed to new replies.