Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Manny Fleurmond

    (@funkatronic)

    Can you clarify your question? I’m sorta confused as to what your asking. You want a checkbox and a text field in a meta box? And you want the checkbox to toggle whether or not the text box is wrapped in h3?

    Thread Starter Zain Sohail

    (@zainsohail19)

    Hello Manny,

    Let me explain my question ..

    array(
            'name' => __( 'Title or Paragraph', 'meta-box' ),
            'id'   => "{$prefix}paragraph",
            'desc' => __( '', 'meta-box' ),
            'type' => 'text',
            'std'  => '',
    );

    This is the code we use to add a new text field in the metabox. What I need to do is that I want to add a option in the same field. If the option is checked, it will make the simple text field in <h3> if not then it remains in simple text.

    Let me know if you are still unable to understand what I mean ..

    Thanks ..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple options in one field’ is closed to new replies.