WordPress.org

Forums

Custom Field Template
multiple cft_group_fieldset (2 posts)

  1. bg000331
    Member
    Posted 4 years ago #

    Hi,
    is it possible to have multiple field groups? the problem i have is that "cft_group_fieldset1" is nested within "cft_group_fieldset"
    am i doing something wrong?

    thanks

    pete

    [cft_group_fieldset]
    type = fieldset_open
    legend = Group #1
    multiple = true
    multipleButton = true

    [cft_group_title]
    type = text
    label = Title
    blank = true

    [cft_group_fieldset]

    [cft_group_fieldset1]
    type = fieldset_open
    legend = Group #2
    multiple = true
    multipleButton = true

    [cft_group_title1]
    type = text
    label = Title
    blank = true

    [cft_group_fieldset1]

    http://wordpress.org/extend/plugins/custom-field-template/

  2. Hiroaki Miyashita
    Member
    Plugin Author

    Posted 4 years ago #

    You need to close the fieldset before starting a new fieldset by use of type = fieldset_close.

    [cft_group_fieldset]
    type = fieldset_open
    legend = Group #1
    multiple = true
    multipleButton = true

    [cft_group_title]
    type = text
    label = Title
    blank = true

    [cft_group_fieldset]
    type = fieldset_close

    [cft_group_fieldset1]
    type = fieldset_open
    legend = Group #2
    multiple = true
    multipleButton = true

    [cft_group_title1]
    type = text
    label = Title
    blank = true

    [cft_group_fieldset1]
    type = fieldset_close

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Field Template
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic