WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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

This one?


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
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

Your Answer


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.