Roy
(@gangleri)
The simpler way is to go to settings->reading and make a page the index rather than the “last x posts”.
Thread Starter
erik85
(@erik85)
Thanks for your answer but that is something I cannot do, because my design is in the homepage is different.
Any other way perhaps?
Thanks
Roy
(@gangleri)
Different how? You can style a page differently, also one page. Look here. The index is just another WP page.
Thread Starter
erik85
(@erik85)
My index php is diffrent then the page.php, so that will not work 🙁
Here’s what you can do…
You can modify index.php and remove the loop that generates blog posts. I personally wouldn’t recommend going that route only because the purpose of the index.php file is to display posts.
So the way to go around that is to make a *copy* of index.php and rename it to page-homepage.php (or whatever you desire). Set the homepage to that file (see fonglh’s post above), and strip out the loop code. Voila.
There may be better methods out there…
Roy
(@gangleri)
Erik, did you look at my example? That index is just a WP page, but I assigned a template to it with no sidebars, no header, footer and a hardcoded image. It’s relatively easy to do. You can make any page look completely different from other pages.