Support » Themes and Templates » confused on theme files

  • Resolved cybershot


    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?

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

    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.

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

    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.

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘confused on theme files’ is closed to new replies.