Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

This is never answered completely anywhere.

If there is a dropdown to select what page I want to use for my blog, why would it ignore the template I select? I realize it uses the index. Then why in the world would they a) make you name a page if they ignore it anyway. b)give you an option to chose a template if they ignore it. I read all of the 'it doesn't work that way' posts all over...why the options? If it ignores it why would I select a page to use? Why would it ignore my template?

So I customize the index page. Then there is zero reason for the option. I can pick a front page template but for the blog, they give the options and then just ignore it. Makes no sense. But I can edit the index. Sounds totally stupid.

share|improve this question

closed as not constructive by Michael, s_ha_dum, brasofilo, Wyck, Chip Bennett Feb 24 '13 at 22:17

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

    
"Sounds totally stupid." - Not in the slightest. WordPress reserves a name for the custom template for the Blog Posts Index: home.php. –  Chip Bennett Feb 23 '13 at 0:58

1 Answer 1

Refer to the Template Hierarchy Codex entry.

The template hierarchy for the blog posts index is as follows:

  • home.php
  • index.php

There is no case where the blog posts index will use a page template, either the default page template or a custom page template.

The determination is controlled by wp-includes\template-loader.php. Refer to Line 31:

elseif ( is_home()  && $template = get_home_template()   ) :

And get_home_template() is defined in wp_includes\template.php:

function get_home_template() {
    $templates = array( 'home.php', 'index.php' );

    return get_query_template( 'home', $templates );
}

So, as you can see, the blog posts index never looks for any variation of a page template.

share|improve this answer
    
This is another non-answer. I clearly stated I know your answer. Try reading the question. Ever looked at an install of WP before? Go to the admin reading page and look at the top. See the cute little dropdown asking for a page for your blog? I guess it is there for fun? This question is asked all over (as I already said) and nobody has an answer (as I said) so I guess the little cute dropdown is for fun but nothing else? Why in the heck ask for a blog page template if NO SUCH THING EXISTS? Do I need to attach a picture of the dropdown to prove it exists? Come on! –  Don Feb 24 '13 at 22:11
    
You asked, "why does blog page ignore template?", and I detailed the template-selection code for the blog posts index. That you don't like the answer doesn't mean that it is a "non-answer." "Try reading the question"? I recommend rather that you try reading the WPSE FAQ. –  Chip Bennett Feb 24 '13 at 22:16
    
Nice...refuse to answer because you can not read a simple question. WTF? Can't you simply state why I must select a blog template page that is ignored? Very simple question. Why the dropdown? Telling me the reason the thing works differently in no way addresses my simple question that keeps getting ignored! –  Don Feb 24 '13 at 22:21
    
So you simply refuse to answer me because you are arrogant and feel above it? Sorry, I'll go elsewhere to fund someone who can answer a simple question. –  Don Feb 24 '13 at 22:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.