Support » Plugin: Meta Box - WordPress Custom Fields Framework » Not pulling values

  • Ok, I’m having some trouble calling the value of my fields to the front end. Here’s my code:

    <?php $title = get_post_meta( get_the_ID(), 'rw_title', true ); ?>
    
          <li>
    				<div class="clearfix">
    
              <div class="folio-desc">
    				<h3><?php the_title(); ?> | <?php echo $title; ?> </h3>

    I tried reading through the tutorials with no luck. Can anyone tell me what I did wrong?

    http://wordpress.org/extend/plugins/meta-box/

Viewing 1 replies (of 1 total)
  • Use

    <?php $title = rwmb_meta('rw_title'); ?>

    It’s a method provided with the Meta-Box.

    There are a 2nd parameter used for images/files/etc. and a third parameter to force the post/page ID. Both of them are optional and not needed for text fields.

Viewing 1 replies (of 1 total)
  • The topic ‘Not pulling values’ is closed to new replies.