• Oh please guys, help me. Ik have a excluded all categries from posts whithin my blog, but now I get a “Page not found error 404”.
    I don`t want any blog post on the home page. Is this possible?
    Thank you sooo much for your help.
    Cheers Erik.

    ps. I can find many posts on the internet about excluding posts, but not to exclude all and without that 404 error.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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

    Different how? You can style a page differently, also one page. Look here. The index is just another WP page.

    or try this and see if it suits your needs.
    http://codex.ww.wp.xz.cn/Creating_a_Static_Front_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…

    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.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Exclude all posts from homepage.’ is closed to new replies.