Can not get value from field.

Support General Can not get value from field.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3958
    cjostencjosten
    Participant

    Tried this from the documentation:

    <?php echo rwmb_meta( 'rw_hometemp-hero-h4', $args, $post_id ); ?>

    Code:

    https://pastebin.com/u6jSeuxa

    #3959
    cjostencjosten
    Participant

    I have even simplified it down to this code:

    https://pastebin.com/uVfHQGVc

    #3966
    Anh TranAnh Tran
    Keymaster

    Hi,

    You're trying to get field value from a group, so please try this:

    $hero = rwmb_meta( 'home__hero' );
    if ( ! empty( $hero ) ) {
        $h4 = isset( $hero['rw_hometemp-hero-h4'] ) ? $hero['rw_hometemp-hero-h4'] : '';
        echo $h4;
    }
    #3997
    cjostencjosten
    Participant

    Thank you very much, I meant to say this earlier but have been slammed with a project. I was able to figure it out but appreciate all the help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Can not get value from field.’ is closed to new replies.