I need to present custom fields to the user on the frontend.
I’m trying something like this:
$args_brands = array(
'post_type' => 'brands',
'exclude' => 1,
'value_field' => '', <-- WHAT TO PUT HERE. TO GET CF VALUES (slug, id)?
'select' => false,
'hide_empty' => 0,
'selected' => $brand,
'class' => 'brands',
'show_option_no_change' => 'All',
'echo' => false
);
In the above I’ve tried various things (basically because I don’t actually know what’s going on), slug, select_brand (the custom post type) …
How could I create a drop down on the front end from custom fields for the user to pick from with values set in the custom field (brand : BRAND)?