MB Yoast and MB Tabs Extensions

Support MB Tabs MB Yoast and MB Tabs Extensions

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4799
    sergeysemenovsergeysemenov
    Participant

    Hello, Metaboxers. Installed all bundle using require get_template_directory in functions.php. All works well, but metabox yoast-seo. I disable main wordpress wysiwyg editor for custom post type and would love to add main text content to one of the wysiwyg fields in MB Tabs. But yoast seo block doesn't analyse/recognize text from wysiwyg in metabox tabs. Please help resolve.

    #4800
    Anh TranAnh Tran
    Keymaster

    Hi Sergey, can you please post your code here?

    #4805
    sergeysemenovsergeysemenov
    Participant

    Hi Anh Tran.
    Before buying bundle, I used some of your extensions and configured it manually in functions.php with 'add_to_wpseo_analysis' => true. Since I have really nice MB Builder I supposed it must register all my extensions with MB for Yoast automatically. But it doesn't.
    Here is my code in functions.php.

    require get_template_directory() . '/metabox/mb-settings-page/mb-settings-page.php'; // Path to the extension's main file
    require get_template_directory() . '/metabox/meta-box-builder/meta-box-builder.php'; // Path to the extension's main file
    require get_template_directory() . '/metabox/meta-box-conditional-logic/meta-box-conditional-logic.php';
    require get_template_directory() . '/metabox/meta-box-tabs/meta-box-tabs.php';
    require get_template_directory() . '/metabox/mb-term-meta/mb-term-meta.php';
    require get_template_directory() . '/metabox/meta-box-group/meta-box-group.php';
    require get_template_directory() . '/metabox/meta-box-template/meta-box-template.php';
    require get_template_directory() . '/metabox/meta-box-include-exclude/meta-box-include-exclude.php';
    require get_template_directory() . '/metabox/meta-box-tooltip/meta-box-tooltip.php';
    require get_template_directory() . '/metabox/meta-box-columns/meta-box-columns.php';
    require get_template_directory() . '/metabox/meta-box-show-hide/meta-box-show-hide.php';
    require get_template_directory() . '/metabox/meta-box-yoast-seo/mb-yoast-seo.php'; // Path to the extension's main file
    #4806
    sergeysemenovsergeysemenov
    Participant

    P.S. I registered only Metabox extensions plugins through functions.php. All other plugins including Yoast Seo are activated normally through wordpress admin panel activation.

    #4820
    Anh TranAnh Tran
    Keymaster

    Hi Sergey, can you send me a screenshot of your meta box built with the Builder extension? Did you mean that previously it worked with the code when adding 'add_to_wpseo_analysis' => true?

    #4823
    sergeysemenovsergeysemenov
    Participant

    Hi Anh Tran. I mean that before using MB Builder I used regular manual integration of custom fields with Metabox. When I added 'add_to_wpseo_analysis' => true to wysiwyg fields my yoast seo block checked it ok. For now, creating metaboxes in MB Builder -> MB Tabs -> wysiwyg for custom post, Yoast seo block doesn't recognize text in custom wysiwyg in my tabs.

    Metabox created in builder. General Tab.
    https://drive.google.com/file/d/0Byg2KbQbI04ATVBxVTBJVzJHQ2c/view?usp=sharing

    Metabox created in builder. Advanced Tab.
    https://drive.google.com/file/d/0Byg2KbQbI04Ab29qdHVEbjdpTWs/view?usp=sharing

    Tabs in custom post
    https://drive.google.com/file/d/0Byg2KbQbI04ARldDWDZGWTl6UTQ/view?usp=sharing

    Yoast block not recognize tabs wysiwyg content
    https://drive.google.com/file/d/0Byg2KbQbI04AX1p3blRlOFNfSms/view?usp=sharing

    Standard wordpress wysiwyg on top of the same post
    https://drive.google.com/file/d/0Byg2KbQbI04AanNsMUl3TnJsOUE/view?usp=sharing

    Yoast block recognize standard wysiwyg content
    https://drive.google.com/file/d/0Byg2KbQbI04AMWNqUFpEVnVEOHM/view?usp=sharing

    #4824
    sergeysemenovsergeysemenov
    Participant

    The way I did it before buying MB builder and MB Tabs. YOAST checked it ok.

    $meta_boxes[] = array(
            'title'      => 'Расположение',
            'post_types' => array( 'page' ),
            'exclude' => array(
    	        'user_id'   => array( 5 )
    	        ),
            'fields'     => array(
                
    			
    			
    			
    			array(
    				'name' => __( 'Основной текст слайда', 'rw_' ),
    				'desc' => __( 'Основной текст слайда', 'rw_' ),
    				'id'   => "{$prefix}location-text",
    				'type' => 'wysiwyg',
    				'cols' => 20,
    				'rows' => 3,
    				'add_to_wpseo_analysis' => true,
    			),
    			
    			array(
    				'name'             => __( 'Крупное фоновое изображение', 'rw_' ),
    				'id'               => "{$prefix}location-bg1",
    				'type'             => 'image_advanced',
    				'max_file_uploads' => 1,
    			),
    			
                array(
    				'name'             => __( 'Мобильное фоновое изображение', 'rw_' ),
    				'id'               => "{$prefix}location-bg1-mob",
    				'type'             => 'image_advanced',
    				'max_file_uploads' => 1,
    			),
    			
    			
            )
        );
    #4834
    Tan NguyenTan Nguyen
    Participant

    Dear Sergey,

    Please try

    - In advanced tab, click "Add Attributes"
    - In key box, enter add_to_wpseo_analysis
    - In value box, enter true
    - Then save meta box

    Best regards,

    Tan

    #4836
    sergeysemenovsergeysemenov
    Participant

    Dear Tan,

    It works. Thanks for assistance.

    Best regards,

    Sergey

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘MB Yoast and MB Tabs Extensions’ is closed to new replies.