<?php
// If your ACF field return option is set to value then:
$data= get_field_object('types'); // where types is the acf field name
$types= $data["choices"]; // ACF use the parameter choices as the options array data
?>
<select name="my-types">
<option value="">Select...</option>
<?php foreach($types as $type){ ?>
<option><?php echo $type; ?></option>
<?php } ?>
Code Example |
---|
Php :: |
:: how to removde product into shop loop via product id |
:: |
Php :: wp_query start from second post |
Php :: |
:: cara install php7.3 di ubuntu 20.04 |
Php :: php while select query |
Php :: debug bar laravel print array |
:: |
Php :: 20 usd to php |
:: |
Php :: |
:: laravel return from db reorder |
Php :: custom blade |
:: Error : Call to undefined method IlluminateNotificationsChannelsMailChannel::assertSentTo() |
Php :: Woocommerce Adding Content to the Custom Endpoint |
Php :: php update sql database from form |
:: simple bindings laravel |
Php :: Call Python From PHP And Get Return Code |
Php :: does xampp install php |
:: php echo example |
Php :: php else |
Php :: Fetch pivot data laravel |
Php :: |
Php :: |
Php :: Using $this when not in object context |
Php :: wherebetween laravel |
:: |
Php :: |
Php :: php/Laravel check if date is passed |