Meta Box Doesn't Show in Post

Support MB Builder Meta Box Doesn't Show in Post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2239
    bduhamelbduhamel
    Participant

    Hello. I've installed the Meta Box plugin and the MB Builder extension. I created one meta box with several text fields and one URL field, saved it and it went smoothly. I then created a new test post and saw the meta box fields there, filled in all of the fields and saved the post. All the fields seemed to save without issue, but previewing the post, I cannot see the meta data anywhere. I am running Genesis 2.2 w/ News Pro child theme and WordPress 4.4.1. I'm on a Mac with OS X El Capitan 10.11.3 running Firefox and Chrome. Thanks for your help.

    #2241
    Anh TranAnh Tran
    Keymaster

    Do you use rwmb_meta function in the template files to view the meta data?

    #2242
    bduhamelbduhamel
    Participant

    I have this rwmb_meta( $field_id, $args = array(), $post_id = null ); added to the functions.php, but truthfully I have no idea where to even put this rwmb_meta function. Where is the template file? I see nothing labelled template in the News Pro child theme, just the .css style sheet.

    #2247
    Anh TranAnh Tran
    Keymaster

    Template files are PHP files inside your theme such as: single.php, page.php. You can learn more about WP template files here.

    If you are not familiar with PHP to add code to template files, you can use shortcode to output the meta value in the post content. Simply add:

    [rwmb_meta meta_key="FIELD_ID"]

    into your post content and you'll see it's displayed in the frontend when you view the post. For more information about the shortcode, please read this documentation.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Meta Box Doesn't Show in Post’ is closed to new replies.