WordPress.org

Ready to get started?Download WordPress

Forums

Enable custom forms on custom post type & display. (1 post)

  1. djdeejay
    Member
    Posted 2 years ago #

    Hi,

    Ok, currently I have a theme with a custom post type that I'm using. It currently uses a meta box which you can customise with as many fields as you want which appear in a certain part of the post.

    I can see in the template php where it displays the meta data, however what I want to do is this.

    Replace the meta data with custom fields that Gravity Forms can access. Currently my custom post type doesn't appear to have custom forms enabled - at least its not in the "show on screen" selections on screen options.

    So how do I first of all go about enabling the custom forms so the post type can see them, I presume by adding something to the functions.php to register it in the post type and the admin panel?

    Secondly I need to make sure any custom fields I add here are then recognised in gravity forms so that my form can write to them - at the moment it writes perfectly to everything else in the custom post type but I need to add about 3-4 custom form fields to complete the data entry.

    Finally I'll need to replace where the template displays the meta data with the custom field data.

    Im sure this is straight forward to most coders, Ive tried in the past to enable custom forms on a custom post type with the WordPress Codex pages and been totally lost.

    Any help greatly appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic