i use WPAlchemy but not echo or print in page.php
Very Regular but not work . Help Me and dont Negative score for me

simple-spec.php :

<?php
$custom_metabox = $simple_mb = new WPAlchemy_MetaBox(array
(
    'id' => '_custom_meta',
    'title' => 'My Custom Meta',
    'types' => array('page'), // added only for pages and to custom post type "events"
    'context' => 'normal', // same as above, defaults to "normal"
    'priority' => 'high', // same as above, defaults to "high"
    'template' => get_stylesheet_directory() . '/metaboxes/simple-meta.php',
));
/* eof */

simple-meta.php :

<div class="my_meta_control">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras orci lorem, bibendum in pharetra ac, luctus ut mauris.</p>
    <label>Title</label>
    <p>
        <?php $mb->the_field('title'); ?>
        <input type="text" name="<?php $mb->the_name(); ?>" value="<?php $mb->the_value(); ?>"/>
        <span>Enter in a title</span>
    </p>
    <label>Description <span>(optional)</span></label>
    <p>
        <?php $mb->the_field('description'); ?>
        <textarea name="<?php $mb->the_name(); ?>" rows="3"><?php $mb->the_value(); ?></textarea>
        <span>Enter in a description</span>
    </p>
</div>

page.php for output :

<?php echo get_post_meta(get_the_ID(),'title',true); ?>

Read more here: how to Outpot WPAlchemy


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

,

Wordpress related questions and answers: