Drupal 7 render field form in tpl

drupal logo

<?php
module_load_include('inc', 'node', 'node.pages');
$node_form = new stdClass;
$node_form->type = 'bid';
$node_form->language = LANGUAGE_NONE;
$form = drupal_get_form('bid_node_form', $node_form);
//file_put_contents('/tmp/log',print_r($form,true));
?>

<?php print render($form['field_offer_price_amount']);?>
<?php print render($form['field_offer_price_currency']);?>
<?php print render($form['field_provider']);?>
<?php print render($form['field_shipping_cost']);?>

Startup Growth Lite is a free theme, contributed to the Drupal Community by More than Themes.