Thread Starter
eroten
(@eroten)
Thanks! I compared your code to mine.
The problem was that I didn’t used quotes around the $Stringy var.
Thread Starter
eroten
(@eroten)
<?php echo do_shortcode('[fu-upload-form form_layout="post_image" suppress_default_fields =>false]'.
'[textarea name="post_content" class="textarea" id="ug_caption" class="required"]'.
'[select name="foo" class="select" values='.$stringy.' class="updateCat"]'.
'[input type="file" name="photo" id="ug_photo" multiple="" class="ggot"]'.
'[input type="submit" class="btn" value="Send" class="newpost upload"]'.
'[/fu-upload-form]'); ?>
Thank you for the quick reply and support 🙂
$Stringy:
<?php
$categories = get_categories();
$stringy="1:לובי";
$num=0;
foreach ($categories as $category) {
if($num==1){
$stringy=$stringy.",".$category->term_id.":".$category->name;
}
$num=1;
}
?>