Custom Fields
Re-Envisioned
Support General Yoast SEO and Custom fields metabox

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #31667
    Long Nguyen
    Moderator

    Hi,

    Can you please share the code that you use to create the custom field? I've tested that feature again and it works as well on my end. For example:

    add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' );
    function your_prefix_function_name( $meta_boxes ) {
        $meta_boxes[] = [
            'title'  => __( 'Post Meta', 'your-text-domain' ),
            'id'     => 'post-meta',
            'fields' => [
                [
                    'name'                  => __( 'Wysiwyg', 'your-text-domain' ),
                    'id'                    => $prefix . 'wysiwyg',
                    'type'                  => 'wysiwyg',
                    'add_to_wpseo_analysis' => true,
                ],
            ],
        ];
    
        return $meta_boxes;
    }

    Then add the code to the Yoast SEO settings %%cf_wysiwyg%%
    screenshot: https://share.getcloudapp.com/8Lu9nDYo

    #31713
    Eliodata
    Participant

    Thank you for the kind help.
    Custom fields have been created with the builder and works great on my product pages.
    But I will find another solution for Yoast SEO.
    Best regards

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