Hi all
Managed the first bit using the below code…
But as a newbie I have no idea where to start with the php side of things. At the moment the image and heading is coming through but I’d ideally like the drop downs to add categories and the rest of the fields to come through.
Thanks
Vini
[fu-upload-form class=”your-class” title=”Upload your Art” form_layout=”post”]
[input type=”text” name=”name” id=”ug_name” class=”required” description=”Full Name”]
[select name=”foo” class=”select” description=”Year Group” values=”year7:Year7,year8:Year8,year9:Year 9,year10:Year 10,year11:Year
11,year12:Year 12,year13:Year 13″]
[select name=”foo” class=”select” description=”Year Group” values=”cowleylanguagecollege:Cowley Language College,delasalle:De La
Salle,haydock:Haydock,hopeacademy:Hope Academy,rainford:Rainford,rainhill:Rainhill,staugustine:St Augustine,stcuthberts:St
Cuthberts,thesuttonacademy:The Sutton Academy”]
[textarea name=”caption” class=”textarea” id=”ug_caption” description=”Title of Art”]
[input type=”file” name=”photo” id=”ug_photo” class=”required” description=”Your Art”]
[input type=”submit” class=”btn” value=”Submit”] [/fu-upload-form]
Plugin Author
Rinat
(@rinatkhaziev)
Your shortcode should look like this:
[fu-upload-form class="your-class" title="Upload your Art" form_layout="post_media"]
[input type="text" name="post_author" id="ug_name" class="required" description="Full Name"]
[select name="year_group" class="select" description="Year Group" values="year7:Year7,year8:Year8,year9:Year 9,year10:Year 10,year11:Year11,year12:Year 12,year13:Year 13"]
[select name="college" class="select" description="Year Group" values="cowleylanguagecollege:Cowley Language College,delasalle:De LaSalle,haydock:Haydock,hopeacademy:Hope Academy,rainford:Rainford,rainhill:Rainhill,staugustine:St Augustine,stcuthberts:StCuthberts,thesuttonacademy:The Sutton Academy"]
[textarea name="caption" class="textarea" id="ug_caption" description="Title of Art"]
[input type="file" name="photo" id="ug_photo" class="required" description="Your Art"]
[input type="submit" class="btn" value="Submit"] [/fu-upload-form]
Thanks very much Rinat.
Do you know what I have to change in the .php side of things?
Many thanks