MB Yoast SEO Integration not seeing group fields

Support MB Group MB Yoast SEO Integration not seeing group fields

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2025
    thomasthomas
    Participant

    Adding the 'add_to_wpseo_analysis' => true to fields within a group has no results. Can we get a fix here?

    Example code:

    	$meta_boxes[] = array(
    		'title'  => __( 'Frontpage column content' ),
    		'post_types' => 'page',
    		'include' => array(
    			'template' => array(
    				'page-frontpage.php'
    			)
    		),
    		'fields' => array(
    			array(
    				'id'     => 'colcontent',
    				// Gropu field
    				'type'   => 'group',
    				// Clone whole group?
    				'clone'  => true,
    				// Drag and drop clones to reorder them?
    				'sort_clone' => true,
    				// Sub-fields
    				'fields' => array(
    					array(
    						'name' => __( 'Headline', 'dahl' ),
    						'id'   => 'headline',
    						'type' => 'text',
    						'add_to_wpseo_analysis' => true
    					),
    					array(
    						'name' => __( 'Image', 'dahl' ),
    						'id'   => 'image',
    						'type' => 'image_advanced',
    					),
    					array(
    						'name'    => __( 'Text', 'dahl' ),
    						'id'      => 'text',
    						'type'    => 'textarea',
    						'add_to_wpseo_analysis' => true
    					),
    					array(
    						'name'    => __( 'Link to page', 'dahl' ),
    						'id'      => 'pagelink',
    						'type'    => 'post',
    						'post_type'=>'page'
    					),
    					
    					
    				),
    			),
    		),
    	);
    #2028
    Anh TranAnh Tran
    Keymaster

    Hi, the extension for Yoast SEO currently doesn't work for group. You should make it a standalone field to make Yoast SEO plugin analyze its content.

    I will work on that to find a solution 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.