Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to create select with posts choices #2900

    @Steve,

    I’m trying this as well to add instructions as the first in select menu. What am I doing wrong that I get this error?

    Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/nickel/public_html/wp-content/plugins/wpcountryipsecurity/parts/settings/countryipsecurity-countries.php on line 38

    Here’s my code

      piklist('field', array(
        'type' => 'group'
        ,'field' => 'continent_north_america'
        ,'add_more' => true
        ,'label' => 'North America'
        ,'description' => 'Description'
        ,'fields' => array(
          array(
            'type' => 'select'
            ,'field' => 'continent_north_america'
            ,'label' => 'North America'
            ,'columns' => 6
            ,'attributes' => array(
          'class' => 'text')
          ,'choices' => array('none' => 'Choose your country') + piklist(
            'ai' => 'Anguilla'
            ,'ag' => 'Antigua and Barbuda'
            ,'bs' => 'Bahamas'
            ,'bb' => 'Barbados'
            ,'bz' => 'Belize'
            ,'bm' => 'Bermuda'
            ,'vg' => 'British Virgin Islands'
            ,'ca' => 'Canada'
            ,'ky' => 'Cayman Islands'
            ,'cr' => 'Costa Rica'
            ,'cu' => 'Cuba'
            ,'dm' => 'Dominica'
            ,'do' => 'Dominican Republic'
            ,'sv' => 'El Salvador'
            ,'gl' => 'Greenland'
            ,'gd' => 'Grenada and Carriacuou'
            ,'gp' => 'Guadeloupe'
            ,'gt' => 'Guatemala'
            ,'ht' => 'Haiti'
            ,'hn' => 'Honduras'
            ,'jm' => 'Jamaica'
            ,'mq' => 'Martinique'
            ,'mx' => 'Mexico'
            ,'pm' => 'Miquelon'
            ,'ms' => 'Montserrat'
            ,'cw' => 'Netherlands Antilles'
            ,'kn' => 'Nevis'
            ,'ni' => 'Nicaragua'
            ,'pa' => 'Panama'
            ,'pr' => 'Puerto Rico'
            ,'kn' => 'Saint Kitts and Nevis'
            ,'lc' => 'Saint Lucia'
            ,'vc' => 'Saint Vincent and the Grenadines'
            ,'tt' => 'Trinidad and Tobago'
            ,'tc' => 'Turks and Caicos Islands'
            ,'vi' => 'US Virgin Islands'
            ,'us' => 'United States of America'
            ,'um' => 'US Minor Outlying Islands'
            ,'sx' => 'Sint Maarten'
            ,'bq' => 'Bonaire'
            ,'sa' => 'Saba'
            ,'se' => 'Sint Eustatius'
           )
          )
        )
        ,'validate' => array(
          array(
            'type' => 'limit'
            ,'options' => array(
              'min' => 1
              ,'max' => 42
            )
          )
        )
      ));
    in reply to: Duplicate Basic Tab via User Guide: Add Settings Page Tabs #2889

    Thank you!! It worked!

Viewing 2 posts - 1 through 2 (of 2 total)