CPT rich snippets not working

#19563
  • Resolved Manos
    Rank Math free

    Hi there,

    I have created a CPT like this:

    function create_posttype() {
     
        register_post_type( 'smartphones',
        // CPT Options
            array(
                'labels' => array(
                    'name' => __( 'smartphones' ),
                    'singular_name' => __( 'smartphones' )
                ),
    			'show_in_rest' => true,						
    			'supports' => array('comments',	'thumbnail', 'author', 'editor', 'title' ),
                'public' => true,
                'has_archive' => true,
                'rewrite' => array('slug' => 'info'),
            )
        );
    }
    

    The problem is that rank math is not adding the rich snippets i have selected.

    • This topic was modified 4 years, 6 months ago by Manos.
    • This topic was modified 4 years, 6 months ago by Manos.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Manos
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting Rank Math today.

    The rich snippet type is set to Article on the backend and I can see that Rank Math is generating this schema on the frontend as shown below:
    Screenshot

    Could you please let me know how you determined that rich snippets are not getting added to the page?

    Looking forward to helping you. Thank you.

    ​​​​​​

    Manos
    Rank Math free

    Hello,

    You are actually right, i didn’t notice that because i was only testing in a specific post of this CPT in which i have add content. This is the post with content in which rank math doesn’t work: https://techvalue.gr/info/realme-x2-pro/

    Thanks for the support

    • This reply was modified 4 years, 6 months ago by Manos.

    Hi Manos,

    Thanks for the follow up.

    You have the rich snippets on this post set to none as shown below:
    Screen cap

    There is however some product schema added to the footer of the page which is likely coming from some custom code on your theme. I do not have access to the theme editor and thus I could not check this to be certain.
    Screen capture

    Please investigate this and remove the footer JSON-ld data.

    Manos
    Rank Math free

    You are totally right again, i have no idea why it is set to none. After i changed this it’s working!

    Many thanks for the support, i wish you all the best 🙂

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘CPT rich snippets not working’ is closed to new replies.