WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Custom Field Template] [cft format=0] changes to Array when saving the post (3 posts)

  1. kinotus
    Member
    Posted 5 years ago #

    Hello !

    I have set up cft template 0 and I can see all the custom fields right on a write post-page.

    When I put [cft format=0] or [cft] to normal WP-content field, and hit "update page", content field changes to just display text: "array". Same "array"-text is also visible when I see the post in a browser.

    Why is that ?

    My fields:
    [Description]
    type = textarea
    rows = 8
    cols = 60
    tinyMCE = false
    mediaButton = false
    output = true

    [Content]
    type = textarea
    rows = 8
    cols = 60
    tinyMCE = false
    mediaButton = false
    output = true

    [Recommended]
    type = textfield
    size = 35
    label = Recommended lessons, type in post ID's (separate with ,)
    output = true

    [Required]
    type = textfield
    size = 35
    label = Required lessons, type in post ID's (separate with ,)
    output = true

    This is what I have in [cft]-template 0:

    <div>
    [Description]
    [Content]
    [Recommended]
    [Required]
    </div>

    I'm using WP2.7.1 and have disabled all the other plugins.

    Jukka

  2. kinotus
    Member
    Posted 5 years ago #

    What I already found out, was that after changing [Content]- field's name to something else, things started working normally again.

    Could it be that there is similar fieldname in wp's database that interferes ??

  3. Hiroaki Miyashita
    Member
    Posted 5 years ago #

    content and post_title is used for the WordPress core name fields. The custom field template plugin uses custom field keys as the name fields. So they overlap the core fields. I may change the name fields into the unique names in the future release, but please be careful to use content and post_title as the custom field keys. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic