WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] confused on theme files (7 posts)

  1. cybershot
    Member
    Posted 3 years ago #

    I am building a theme and it is going good. my issue now is this. it's not really a blog website but I am going to add blogging support. I created a page called home.php, got all my content into that. I wanted to make a blog page so I created a category called blog, then made a test post and assigned it to the blog category, then added the blog category to the menu. When I checked out the page, I found that the page that is displaying the post is the category.php. I thought maybe the index file would display it. So when does the single.php and the index.php kick in? How do I assign a blog page? if someone just clicks on new post without using a category, how do I get that post to display?

  2. Samuel B
    moderator
    Posted 3 years ago #

  3. cybershot
    Member
    Posted 3 years ago #

    this isn't working. I followed the instructions. but for the blog page, it is using the home.php which I created as a template and assigned to the static homepage as those instructions suggest. But now, when I go to the blog page, it is using the home.php even though it is not assigned to the blog page.

  4. cybershot
    Member
    Posted 3 years ago #

    also, I do need to query the posts in a category to fill a div. I had this working before. but it seems as if the static page will not query the posts. When I set the home.php as the template for the homepage, the info in the div disappeared.

  5. Root
    Member
    Posted 3 years ago #

    As usual a link to yr blog would help us help you.

  6. cybershot
    Member
    Posted 3 years ago #

    I have tried the static homepage and it isn't working. The blog page shows the homepage for some reason. Here is a link to the site. I don't know what you can find out by having it so that will be interesting to find out.

    http://www.rc-hc.com/pizza/

  7. cybershot
    Member
    Posted 3 years ago #

    I figured out the problem. I made a page template and called it home.php. I changed the filename to homepage.php and that fixed things.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.