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.

Will "Google XML Sitemaps" plugin work without "wp_head();" ?

Thanx

share|improve this question
    
More important question: why is there no call to wp_head()? –  Chip Bennett Jul 1 '11 at 12:34
add comment

1 Answer 1

This one?

http://wordpress.org/extend/plugins/google-sitemap-generator/

Looks like it should as I do not see wp_head being hooked into anywhere.

share|improve this answer
    
yeap that one I will give it a try without "wp_head();" .... ;) –  Matus Jul 1 '11 at 7:40
2  
Which makes sense, right? A sitemap usually isn't linked from the document head, but rather saved in the document root, where a robot would expect to find it. By the time the robot gets to the document header, it is presumably already traversing the document tree. But still my primary concern is: why is there no call to wp_head()? No Theme should ever omit this call. It is critical. –  Chip Bennett Jul 1 '11 at 12:38
    
I have sites without "wp_head();" and they work just fine. I use as few plugins as possible. They load faster. I am not an expert so maybe I am missing something. –  Matus Jul 2 '11 at 10:26
    
Matus, In a "controlled environment" it's fine to omit the call to wp_head(). I've done it myself before. But after a while I stopped. I needed functionality that could only be provided by plugins utilizing the hooks used inside this function. Which lead to more than one headache. I would have to agree with Chip that no theme should ever omit it, although I do not believe that it is critical. –  mfields Jul 3 '11 at 1:39
    
"wp_head();" is in my head :) when I will have problems, it will be the first thing I will think about. –  Matus Jul 5 '11 at 14:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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