Frustrated - Can't get value of items

Support MB Group Frustrated - Can't get value of items

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8606
    charitablehumanscharitablehumans
    Participant

    My experience with Meta Box has not ben a good one. Using your documentation and sample code I have yet to succeed in getting any values from any field.

    I created a meta box named "Person"

    I created a group containing three fields. The ID of the group is: "person_name"
    Field 1 is "f_name"
    Field 2 is "m_name"
    Field 3 is "l_name"

    Your instructions say this code should work to get the values:
    $group_value = rwmb_meta( 'person_name' );
    $value = isset( $group_value['f_name'] ) ? $group_value['f_name'] : '';
    echo $value;

    Well, it doesn't. Using the code on the single.php template file displays nothing.

    The fields show up on the add new post page, but while the name entered is indeed saved when the post is saved or updated, nothing appears on the front end.

    So, what is the problem?

    #8607
    charitablehumanscharitablehumans
    Participant

    It would seem the problem is related to my dev environment or PHP version

    #8613
    Anh TranAnh Tran
    Keymaster

    Hello, what is the output of print_r( $group_value )? Do you use prefix for group ID?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Frustrated - Can't get value of items’ is closed to new replies.