How to add only the postal code field to the user registration page? I have a custom template file successfully rendering the user account creation page. I am using the Location Module, which adds a field (which appears to be a field group) to the user. I want to add only the postal code field (zip Code) to the user registration page.

template.php code:

    function responsive_bartik_theme() {
  $items = array();

  $items['user_login'] = array(
    'render element' =&gt; 'form',
    'path' =&gt; drupal_get_path('theme', 'responsive_bartik') . '/templates',
    'template' =&gt; 'user-login',
    'preprocess functions' =&gt; array(
       'responsive_bartik_preprocess_user_login'
    ),
  );
  $items['user_register_form'] = array(
    'render element' =&gt; 'form',
    'path' =&gt; drupal_get_path('theme', 'responsive_bartik') . '/templates',
    'template' =&gt; 'user-register-form',
    'preprocess functions' =&gt; array(
      'responsive_bartik_preprocess_user_register_form'
    ),
  );
  $items['user_pass'] = array(
    'render element' =&gt; 'form',
    'path' =&gt; drupal_get_path('theme', 'responsive_bartik') . '/templates',
    'template' =&gt; 'user-pass',
    'preprocess functions' =&gt; array(
      'responsive_bartik_preprocess_user_pass'
    ),
  );
  return $items;
}


user-register-form.tpl.php code:

&lt;div class="responsive_bartik-user-pass-form-wrapper"&gt;
&lt;?php
     print render($form['account']['name']);
     print render($form['account']['mail']);
     print render($form['account']['pass']);
     print render($form['captcha']);
     print drupal_render($form['actions']);
     print render($form["form_build_id"]); 
     print drupal_render($form['form_token']); 
     print drupal_render($form['form_id']);
?&gt;

&lt;p&gt;
   &lt;a href="password"&gt;Forgot Password&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;Already have an account?&lt;a href="login"&gt; Log in&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
Use this module Postal Code they can allow to only add postal code in user page 


  A very minimal D7 Postal Code (ZIP Code) field with validation for one
  country or a combination of countries