How do I retrieve the data I entered?
-
Forgive me, I’m kind of a newbie to this. But for the life of me, I can’t “call” the information into the front end of my site once I save the custom data I entered. I’m used to using something like <?php the_title(); ?> to retrieve the title, how would I do it for the metabox below?
// 1st meta box
$meta_boxes[] = array(
// Meta box id, UNIQUE per meta box. Optional since 4.1.5
‘id’ => ‘EventTitleHomepage’,// Meta box title – Will appear at the drag and drop handle bar. Required.
‘title’ => __( ‘Event Title – Homepage’, ‘rwmb’ ),// Post types, accept custom post types as well – DEFAULT is array(‘post’). Optional.
‘pages’ => array( ‘post’, ‘page’ ),// Where the meta box appear: normal (default), advanced, side. Optional.
‘context’ => ‘normal’,// Order of meta box: high (default), low. Optional.
‘priority’ => ‘high’,// Auto save: true, false (default). Optional.
‘autosave’ => true,// List of meta fields
‘fields’ => array(// WYSIWYG/RICH TEXT EDITOR
array(
‘name’ => __( ‘Event Title – Homepage’, ‘rwmb’ ),
‘id’ => “{$prefix}wysiwyg”,
‘type’ => ‘wysiwyg’,
// Set the ‘raw’ parameter to TRUE to prevent data being passed through wpautop() on save
‘raw’ => false,
‘std’ => __( ‘XXX’, ‘rwmb’ ),// Editor settings, see wp_editor() function: look4wp.com/wp_editor
‘options’ => array(
‘textarea_rows’ => 4,
‘teeny’ => true,
‘media_buttons’ => false,
),
),
)
);
- The topic ‘How do I retrieve the data I entered?’ is closed to new replies.