Need help for metabox type post.

Support General Need help for metabox type post.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6760
    TonoTono
    Participant

    Hi,

    How do i display selected post's title and featured image on frontend. Please help.

    $meta_boxes[] = array(
    'id' => 'untitled',
    'title' => esc_html__( 'Untitled Metabox', 'metabox-online-generator' ),
    'post_types' => array( 'post', 'page' ),
    'context' => 'advanced',
    'priority' => 'default',
    'autosave' => false,
    'fields' => array(
    array(
    'id' => $prefix . 'post_1',
    'type' => 'post',
    'name' => esc_html__( 'Post', 'metabox-online-generator' ),
    'post_type' => 'post',
    'field_type' => 'select_advanced',
    'multiple' => true,
    'query_args' => array(),
    ),
    ),
    );

    #6770
    Truong GiangTruong Giang
    Participant

    Hi there,

    You can use var_dump() to inspect the meta data then handle it:

    
    // Use this in WordPress loop.
    var_dump( rwmb_meta( 'prefix_post_1' ) );
    
    #6778
    TonoTono
    Participant

    Hi,

    Can you please give me complete loop? I have not much idea about this. I need your help so much. Please help.

    Thanks

    #6779
    TonoTono
    Participant

    Thanks for your help. Everything Good now.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Need help for metabox type post.’ is closed to new replies.