• hello, thank you for this nice plugin. If I can use it, I will donate!

    I have a Custom Post type = testimonials

    So, I used your plugin to create some fields for it. Then, I go to my custom post type and – Add testimonial. I see a drop down for selecting the Custom field template. But, only Default is available. Any tips? thank you, Nancy

    [comment]
    type = textarea
    rows = 4
    cols = 40
    tinyMCE = true
    htmlEditor = true
    mediaButton = true

    [name]
    type = text
    size = 35
    label = Name
    hideKey = false

    [rating]
    type = radio
    value = 1 # 2 # 3 # 4 # 5
    default = 5
    label = Rating
    clearButton = true

    [town]
    type = textfield
    size = 35
    label = Town
    hideKey = false

    https://www.ads-software.com/extend/plugins/custom-field-template/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am having the exact same problem. Can’t get any custom fields added with Custom Field Templates (CFT) to work with custom post types created by Custom Post Type UI.
    There is an option call “Custom Post Type (comma-deliminated):” when in CFT. I have entered by my custom post type name there and updated, but this does not change anything?
    Does anyone know what this option does? I assumed it was to direct CFT to use the custom post type.
    One other thing – the default custom field template shows up on all Pages/Post edits. If you want it to show up on only one page, how is that done? Again, changing options don’t seem to affect anything for me.
    This is an awesome plugin, but need to understand how it works (especially for custom post types).

    Make sure you have the custom post type name (comma deliminated) value in the correct caps or no caps. I have one “Business Listing” and I think I recall it not working when I had it as “business listing”. Be sure that

    Also, “Post Type” needs to be the radio button “Both” in the custom field template admin screen.

    In the “Edit Custom Post Type” screen, I also have the Capability Type set to Post.

    Let me know if you have all those settings correct. I have custom post type UI and custom field template plugins working on several sites nicely.

    Note * Custom Post Type UI plugin is not yet compatible with WordPress 3.1

    Also, you may be able to fix it by editing the custom-field-template.php file , line 147, add this line (be sure to change ‘your-post-type’ to the name of your custom post type.

    add_meta_box(‘cftdiv’, __(‘Custom Field Template’, ‘custom-field-template’), array(&$this, ‘insert_custom_field’), ‘your-post-type’, ‘normal’, ‘core’);

    Hi Brian,
    I created a CPT in Custom Post Type UI (had to register is manually in functions.php – must be a problem with CPTUI and WP 3.1?) called “mybooks”. All lower case, no spaces, exactly like you see it (obviously no quote marks either).
    I then created a Custom Post Template with these settings:
    Custom Post Type (comma-deliminated): mybooks
    Page Template file name(s) (comma-deliminated): page-mybooks.php

    The Custom Field Template box showed up in my CPT, but with nothing in it.
    I then removed page-mybooks.php from the Page Template file, and voila, the fields all appeared.
    Any experience with this?
    What is the Page Template file name setting used for?
    There is very little documentation for CFT…
    Thanks!

    Hey,

    Firstly, the developer of Custom Post Type UI plugin just emailed me 2 days ago and said they updated the plugin to be compatible with WP 3.1 , so be sure to update right away.

    I never use page template file name like that…. I recommend using the plugin “Custom Post Template” https://www.ads-software.com/extend/plugins/custom-post-template/

    With this plugin, you then need to create a php file in your theme folder with //Template Post Name: YourName

    One thing you must add this plugin is in the file : custom-post-templates.php which is within the custom post template plugin folder.

    After line 48, add this : $this->add_meta_box( ‘select_post_template’, __( ‘Post Template’, ‘custom-post-templates’ ), ‘select_post_template’, ‘projects’, ‘side’, ‘default’ );

    Be sure to replace ‘projects’ with your custom post type name: ‘mybooks’.

    When you create a custom post type post, you will now see a drop down menu in the right hand side of the edit post screen where you choose your post template.

    Please let me know if that works for you

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Custom Field Template] Custom fields for Custom Post Type UI’ is closed to new replies.