WordPress.org

Ready to get started?Download WordPress

Forums

Meta Box
Not pulling values (2 posts)

  1. mtuttle
    Member
    Posted 1 year ago #

    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/

  2. SpiritOfTheWinds
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags