MB Yoast and MB Tabs Extensions
- This topic has 8 replies, 3 voices, and was last updated 8 years, 3 months ago by
sergeysemenov.
-
AuthorPosts
-
January 15, 2017 at 3:58 AM #4799
sergeysemenov
ParticipantHello, 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.
January 15, 2017 at 8:43 AM #4800Anh Tran
KeymasterHi Sergey, can you please post your code here?
January 15, 2017 at 9:10 PM #4805sergeysemenov
ParticipantHi 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
January 15, 2017 at 9:21 PM #4806sergeysemenov
ParticipantP.S. I registered only Metabox extensions plugins through functions.php. All other plugins including Yoast Seo are activated normally through wordpress admin panel activation.
January 17, 2017 at 8:37 AM #4820Anh Tran
KeymasterHi 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
?January 17, 2017 at 12:01 PM #4823sergeysemenov
ParticipantHi 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=sharingMetabox created in builder. Advanced Tab.
https://drive.google.com/file/d/0Byg2KbQbI04Ab29qdHVEbjdpTWs/view?usp=sharingTabs in custom post
https://drive.google.com/file/d/0Byg2KbQbI04ARldDWDZGWTl6UTQ/view?usp=sharingYoast block not recognize tabs wysiwyg content
https://drive.google.com/file/d/0Byg2KbQbI04AX1p3blRlOFNfSms/view?usp=sharingStandard wordpress wysiwyg on top of the same post
https://drive.google.com/file/d/0Byg2KbQbI04AanNsMUl3TnJsOUE/view?usp=sharingYoast block recognize standard wysiwyg content
https://drive.google.com/file/d/0Byg2KbQbI04AMWNqUFpEVnVEOHM/view?usp=sharingJanuary 17, 2017 at 12:17 PM #4824sergeysemenov
ParticipantThe 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, ), ) );
January 18, 2017 at 4:42 AM #4834Tan Nguyen
ParticipantDear Sergey,
Please try
- In advanced tab, click "Add Attributes"
- In key box, enteradd_to_wpseo_analysis
- In value box, entertrue
- Then save meta boxBest regards,
Tan
January 18, 2017 at 5:28 AM #4836sergeysemenov
ParticipantDear Tan,
It works. Thanks for assistance.
Best regards,
Sergey
-
AuthorPosts
- The topic ‘MB Yoast and MB Tabs Extensions’ is closed to new replies.