Forum Replies Created
-
AuthorPosts
-
Seun Tayo
ParticipantGood evening Steven
thank you for quick response.
Let me rephrase my question –
becuase I am dealing with multiple field within a metabox, where do I add additional field within this code?
$text = $entry->getMeta( array( 'key' => 'field_id', // This should match exactly the field id used when registering the custom field. 'single' => TRUE // Do not change this. ) ); if ( ! empty( $text ) ) echo '' . esc_html( $text ) . '';will I have to duplicate the below and change the field_id to correspond with each field_id?
'key' => 'field_id', // This should match exactly the field id used when registering the custom field. and when this is done, in the exp`enter code here`ort and import code snippets, I assume I am repeating the below:‘field’ => ‘field_mn’, // The field_id should match exactly the field id used when registering the custom field.
‘type’ => 5,
‘fields’ => ”,
‘table’ => CN_ENTRY_TABLE_META,
‘types’ => NULL,Seun Tayo
ParticipantHello Steven,
I have created up to 8 additional fields under a meta box.
My question is – how do I ensure that all the 8 fields are exported (saved to the database, and displayed in forms and links?
I tried with a field within the metabox – I edited the card.php, created the slug as per the instructions here – (https://connections-pro.com/2014/06/04/quicktip-custom-template-override-files/) and here (https://connections-pro.com/2014/06/04/quicktip-custom-template-override-files/), I was able to see the single field when I exported the database, however this is not displayed in the front end.
Thank you
Seun Tayo
Participantthank you Steve for getting back. I am just learning the ropes here, I need help with the syntax for multiple fields.
I believe all of the below need to be repeated for different field within the meta box? is this correct? thank you:
array(
‘name’ => ‘Field Name’, // Change this field name to something which applies to you project.
‘show_label’ => TRUE, // Whether or not to display the ‘name’. Changing it to false will suppress the name.
‘id’ => ‘field_id’, // Change this so it is unique to you project. Each field id MUST be unique.
‘type’ => ‘text’, // This is the field type being added.
‘size’ => ‘regular’, // This can be changed to one of the following: ‘small’, ‘regular’, ‘large’
), -
AuthorPosts
