• Hello.

    I wonder how to make a form that’s inserting data in custom_fields.

    Lets say that i have a custom_field, and the name of it is, company_logo.

    I think i should use something like this:

    <input name=”company_logo” id=”company_logo” value=”” type=”file” class=”field” />

    Can anyone help me, and explain how I should code, so that in doing it right.

Viewing 5 replies - 1 through 5 (of 5 total)
  • its by default on post or page please refer https://codex.www.ads-software.com/Custom_Fields

    Check out Post Meta Boxes I use them all the time, and it seems to be the best fit for your situation.

    WordPress Codex: Post Meta Boxes

    i feel post meta box need some coding. its really a best option but custom field is easy to work with.

    Thread Starter jonssondesign

    (@jonssondesign)

    Thank you guys for the answers.

    But i know how to add custom fields in the admin panel.
    And i know how to out-put them in the theme files.

    What i don’t know is that, how to add values to the fileds outside the admin panel.

    Lets say that i have a job page, a page where i list available jobs..
    And instead of letting the company that is going to advertise a available job go in to the admin panel, i want to be able to let them go to a page that i have made, a custom one, and fill out a form, wich contains fields with information. Like company name, position, company logo, description of the job etc..

    That’s my problem. I don’t know how to make the form post the values to the database, so that the job can be displayed on the site.

    Everything is going fine if i do it directly in the admin-panel, but i can’t get it to work with the custom form that i have made..

    Oh, and you should know that, i am a real noob when it comes to PHP. I can understand some things when i see the php code, and i can make diffrent things with already existing code. But i cant make my own code.. hehe.

    Do you understand? ??

    Thanks in advance!

    try TDO Mini Forms plugin it may solve your need.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to insert data into custom fields via forms on the page.’ is closed to new replies.