Custom Fields
Re-Envisioned
Support Meta Box Group Meta Box for Yoast SEO not seeing group fields

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 3 years, 7 months ago.

  • Creator
    Topic
  • #2025

    thomas
    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'
    					),
    					
    					
    				),
    			),
    		),
    	);
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #2028

    Anh 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 1 replies (of 1 total)

You must be logged in to reply to this topic.