How do I customize the location of a webform for a node type? I'm customizing a node type and need to add a webform using the webform module. How do I add the webform in a custom location without having a machine name for the webform?

In the code below for example, I want to populate body content followed by the webform:

&lt;div id="content"&gt;    
    &lt;?php print render($content['body']); ?&gt;
    &lt;?php print render($content['WEBFORM?!?']); ?&gt;
&lt;/div&gt;


And, yes, I know about displays and how you can change the location of a webform there - my node is too customized.
You were almost there. Use the following code.

&lt;?php print render($content['webform']); ?&gt;


Bear in mind that if you are rendering the webform before the line containing print render($content);, you would need to hide the output of $content['webform'] first, and then render it manually. In this case the code would be similar to the following one.

&lt;?php
// This would go at the beginning of the .tpl.php file, for better readability.
// Hide the webform from rendering, because we will do it manually.
hide($content['webform']);
?&gt;
&lt;div class="content"&gt;&lt;?php print render($content); ?&gt;&lt;/div&gt;
&lt;div class="webform"&gt;&lt;?php print render($content['webform']); ?&gt;&lt;/div&gt;


Generally speaking, I think it is a good practice to always hide elements you want to render separately, just in case at some point you move them before the render($content) line.