Get custom field of node in frontend as its type I have a requirement in drupal. In this i have a content type 'sports' and created some custom fields of type dropdown, checkbox and file.

I want to get the custom field with its type as html in front end.

Example In dropdown i have

&lt;select&gt;
&lt;options value="15"&gt;Cricket&lt;/options&gt;
&lt;options value="16"&gt;Football&lt;/options&gt;
&lt;options value="16"&gt;Basketball&lt;/options&gt;
&lt;/select&gt;


I want the same in frontend to display as html
Finally i found what i want actually in front end.

The below code displays the form that it has on backend.

This form is for 'sports' content type. This wil bring all fields with its widget wherever we calling.

module_load_include('inc', 'node', 'node.pages'); 
$form = node_add('sports');
print drupal_render($form);