Reading Settings Override Page Template
-
Ok, I am going to try to explain this as simply as possible.
I am working on a new template for my girlfriend which can be visited as a work in progress here https://zachbrown.mine.nu/kristinwordpress/
WHAT I NEED:
………………………………………………………….
I will need to arrange/style each PAGE differently. (about, contact, suface, graphic, blog etc.) At the moment they all look the same, but they will be different. I also need to have any POSTS that she writes show up on the “Blog” PAGE.
………………………………………………………….I currently have a “Blog.php” PAGE TEMPLATE in my theme folder. The only code in it at all is:
<?php
/*
Template Name: Blog
*/
?>I don’t have any other code in “Blog.php” simply for testing reasons. I went to edit my “Blog” PAGE, and under the “Attribute” settings I have the “Template” set to “Blog.” That way, if the page comes up blank I know it is working.
MY PROBLEM:
………………………………………………………….
If I go to the “Reading Settings” in wp-admin, and select “A Static Page” and select to have my POSTS go to the “Blog” PAGE, it sends my POST to my “Blog” PAGE just like it should…but, as you can see (https://zachbrown.mine.nu/kristinwordpress/?page_id=18) the page is not blank which means it hasn’t applied the “Blog” “Template” As soon as I set my “Reading Settings” back to the default “Your Latest Posts” then the page turns blank and it applies my “Blog” template file.So to sum it all up, I can’t get my “Blog” template file (Blog.php) to be applied to my “Blog” PAGE, but only when my “Reading Settings” are telling my POSTS to go to the “Blog” PAGE. It is defaulting back to my “index.php” file in that case.
………………………………………………………….FINAL QUESTION:
………………………………………………………….
How do I style each page differently AND have my POSTS display on the “Blog” PAGE?
………………………………………………………….Sorry for the over-use of quotations, CAPS, and periods I am just hoping it helps make my question easier to understand. Thanks.
- The topic ‘Reading Settings Override Page Template’ is closed to new replies.