WordPress.org

Ready to get started?Download WordPress

Forums

Custom fields on custom post types... (9 posts)

  1. Jack Barham
    Member
    Posted 3 years ago #

    Hello, I need some help or at least pointing in the right direction...

    Is there a way of creating a custom forms for a custom post type page - I know you can use the drop down 'Custom Fields' but I wan to remove that and actually program in some 'physical' fields that a user just has to enter content in...

    So for example I make a Custom Post Type for Movies (with its own page to enter details), I wand to use the main field for the content then underneath some set fields for say: Director, Year, Actors, etc so there is a field the user just has to enter info in (instead of using the drop down menus), also is it possible to make one of those fields a media field so a user can upload a file (image / music / doc / etc) instead of having to upload a file and copying the link in to the 'traditional' custom post fields.

    The reason I having trouble with this is I don't know what term I need to search for as 'Custom Post Fields', 'Custom Forms' etc all point to how the current custom fields work!

    I hope some one an either point me in the direction of an example, tutorial or even any input would be really helpful.

    Hoep that makes sense - Jack

  2. Jack Barham
    Member
    Posted 3 years ago #

    Think I have found the answer...

    The term I was looking for is 'Custom Write Panels' and I have found a really good tutorial here: http://blogs.sitepoint.com/2010/08/26/guide-to-wordpress-custom-write-panels/

    Hope it helps someone else.

    Jack

  3. Hasitha Prabath
    Member
    Posted 3 years ago #

    Thanks @airboxmedia That's what I want.

  4. davidnde
    Member
    Posted 3 years ago #

    +1

    thank you @airboxmedia!

  5. Jack Barham
    Member
    Posted 3 years ago #

    I have since started using these plug-ins: http://more-plugins.se/ for custom write panels.

    My favorite is: http://wordpress.org/extend/plugins/simple-fields/

    Hope that helps - J

  6. memelab
    Member
    Posted 2 years ago #

    dusty thread, but for future seekers, this seems to be the way to go:
    extending-custom-post-types-in-wordpress-3-0

    i found that easy post types plugin provided a gui for this, but found the plugin limited in other ways..
    best wishes

  7. Jack Barham
    Member
    Posted 2 years ago #

    By the way, I have found an even better plugin - Blows all the others away (and with repeater fields too :))))

    http://wordpress.org/extend/plugins/advanced-custom-fields/

    Hope you find it useful.

    Jack

  8. themoviemark
    Member
    Posted 2 years ago #

    Thanks, the Advanced Custom Fields plugin is exactly what I was looking for. Now, how do you display those custom fields on a custom template?

  9. Jack Barham
    Member
    Posted 2 years ago #

    <?php the_field('name_of_your_field'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic