Support Forum » User Profile

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Create Shortcode to display in post or pages #33341
    Martin RybosMartin Rybos
    Participant

    I love you !!
    You are great

    in reply to: get fields to page again #24338
    Martin RybosMartin Rybos
    Participant

    Easy. Thank you

    in reply to: Set meta tags by setting pages #24309
    Martin RybosMartin Rybos
    Participant

    I think it is.

    
    add_filter( 'mb_settings_pages', function ( $settings_pages ) {
        $settings_pages[] = array(
            'id'          => 'dimainsettings', //settings field ID
            'option_name' => 'DiSettings',    // $option_name 
            'menu_title'  => 'DiSettings',  
            'icon_url'    => 'dashicons-edit',
            'style'       => 'no-boxes',
            'columns'     => 1,
            'tabs'        => array(
                'general' => 'General Settings',
                'faq'     => 'FAQ & Help',
            ),
        );
        return $settings_pages;
    });
    
    add_filter( 'rwmb_meta_boxes', 'meta_box_group_demo_register' );
    function meta_box_group_demo_register( $meta_boxes ) {
        
    //mainsettingspage
    
    $meta_boxes[] = array(
            'id'             => 'general',
            'title'          => 'General',
            'settings_pages' => 'dimainsettings', 
            'tab'            => 'general',
            'fields' => array(
                array(
                    'name' => 'Logo',
                    'id'   => 'logo',
                    'type' => 'file_input',
                ),
                
                array(
               'name'        => 'Meta Description',
            'id'          => 'meta_description', //    field ID
                   'type'        => 'textarea',
                    'placeholder' => 'Meta Description',
                    'rows'        => 4, 
                ),
                
                array(
                    'name'        => 'Meta Keywords',
                    'id'          => 'meta_keywords',
                   'type'        => 'textarea',
                    'placeholder' => 'Meta Description',
                    'rows'        => 4, 
                ),
                
                
            ),
        );
       
        $meta_boxes[] = array(
            'id'             => 'info',
            'title'          => 'Theme Info',
            'settings_pages' => 'dimainsettings',
            'tab'            => 'faq',
            'fields'         => array(
                array(
                    'type' => 'custom_html',
                    'std'  => 'Having questions? Check out our documentation',
                ),
            ),
        );
    
    //mainsettingspage  
    
    in reply to: Set meta tags by setting pages #24298
    Martin RybosMartin Rybos
    Participant

    I probably don't put the code in the right place.
    I'm mixing a meta box with settings
    whole code is: https://pastebin.com/PPRYQz6v

    in reply to: Set meta tags by setting pages #24297
    Martin RybosMartin Rybos
    Participant

    Hi.Thanks.I can't get it to work. I have something wrong there. But i'm close

     
    
    $value = rwmb_meta( $field_id, ['object_type' => 'setting'], $option_name ); 
    echo $value;
    

    $field_id - is field ID of meta_description
    ['object_type' => 'setting'] - remains unchanged or i need to rename setting ?

    $option_name - opton name of setting page - DiSettings in my case

    Do i need to add bellow hook to my php to get it work ?

    
    add_action( 'mb_settings_page_load', function ( $args ) {
        if ( $args['id'] === 'dimainsettings' ) {
            // Do something
        }
    }, 20 );
    
    
    in reply to: get advanced images from array #24186
    Martin RybosMartin Rybos
    Participant

    Ok. thanks it is working but. When i select 3 images to gallery.
    Foreach create 8 images and the last 5 images are the same.
    Do you know why ?

    image

    This is a page
    lightbox
    Icon at the bttom right open lightbox.

    in reply to: sub group buttons array #24168
    Martin RybosMartin Rybos
    Participant

    Thank you. Works

    in reply to: Licencing #24125
    Martin RybosMartin Rybos
    Participant

    I don't have meta box in main menu, only in installed plugins

Viewing 8 posts - 1 through 8 (of 8 total)