SEO Option missing from Custom Post Type

  • I noticed when using a Custom Post Type the single posts don’t include the SEO controls in Elementor.
    It appears fine when in Edit Post (Classic Editor) though when in Elementor the “SEO” option is not there.

    Note: Add SEO Metabox is already enabled.

    Is there any additional code I’d need to add to my function?

    Function code example:

    add_theme_support('post-thumbnails');
    add_post_type_support( 'photo-gallery', 'thumbnail' );
    
    function photo_gallery_post_type() {
        register_post_type( 'photo-gallery',
            array(
                'labels' => array(
                    'name'=> _('Photo Galleries'),
                    'singular_name' => _('Photo Gallery'),
                 ),
                'public' => true,
                'has_archive' => true,
            )
        );
    }
    add_action( 'init', 'photo_gallery_post_type' );
    • This topic was modified 1 week, 4 days ago by Matt. Reason: code adjusted
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    We are checking this further and we will be in touch in a short while.

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.