• Hi,

    I just installed WordPress today. I have created some posts, and can view them if I don’t change the options. I would like to view the posts in a different folder, but when I change the option, and try to view a file, it says:

    Warning: main(blog-header.php): failed to open stream: No such file or directory in /home/…/mywebsite/notes/index.php on line 4

    Fatal error: main(): Failed opening required ‘blog-header.php’ (include_path=’.:/usr/local/lib/php’) in /home/…/mywebsite/notes/index.php on line 4

    Do I need to put a file in that directory? or change something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Warning: main(blog-header.php): failed to open stream: No such file or directory in /home/…/mywebsite/notes/index.php on line 4

    Look at line 4 for your index.php template. The require pointing to wp-blog-header.php needs to have the correct path to this file. If this is:

    /home/…/mywebsite/wordpress

    then change the require to:

    <?php
    require("/home/..../mywebsite/wordpress/wp-blog-header.php");
    ?>

    Thread Starter aranjuez

    (@aranjuez)

    Thank you.

    Is obvious when you see it.

    But why doesn’t WordPress automatically set that up when you select that option?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Posts don’t display if use different folder’ is closed to new replies.