If you’re saying there’s no link on your home page to the page with a list of posts on it, that’s possibly because you didn’t include the link on your home.php.
Or, it’s because the “blog” page hasn’t been set. Have you created an empty Page and assigned it as the “Posts page” in Settings -> Reading?
Thread Starter
zagnex
(@zagnex)
I don’t think you understood my first post. I have a “splash page” in the form of home.php. I was hoping that after making home.php, I would still be able to access index.php because index.php has all of my articles. However, home.php seems to have overridden everything that leads to index.php.
My question is: is there any way I can get back to JUST index.php without deleting home.php?
Or, it’s because the “blog” page hasn’t been set. Have you created an empty Page and assigned it as the “Posts page” in Settings -> Reading?
I just tried that, but the page I created (the url ends in “?page_id=43”) is now also linking to home.php
Yeah, I didn’t think I’d understood your first post, either 🙂
I think the problem you’re having is down to your creation of the file home.php
. There are several file names that can be used instead of index.php
, including home.php
and default.php
.
This seems to be causing problems because WordPress is looking for yourdomain.com/?page_id=43
WordPress assumes that its own index.php file is going to be called, but because you’ve got a home.php
file, your server is actually serving
yourdomain.com/home.php?page_id=43
— which is obviously not going to work.
Try turning permalinks on. The .htaccess
file this creates (if your directory is writable) will specifically force requests for directories and files which don’t exist to index.php
.
Thread Starter
zagnex
(@zagnex)
WordPress assumes that its own index.php file is going to be called, but because you’ve got a home.php file, your server is actually serving
yourdomain.com/home.php?page_id=43
— which is obviously not going to work.
That’s what I was thinking, but an individual post with the ending “?p=6” does, in fact, work.
Is there anything I can do to change home.php to something else but still be able to use The Loop to call specific articles?
Also, I tried changing the permalinks to “Month and Name”, but that messed up my template and the horizontal navigation was put where the logo image should have been.
Thread Starter
zagnex
(@zagnex)
Maybe someone else could shed some light on my problem?
Thread Starter
zagnex
(@zagnex)
It turns out that I just had to use <?php require('./newspaper/wp-blog-header.php'); ?>
on an index.php
page that was outside of the wordpress directory.
I’m so happy it’s working now 🙂