Custom post types not shown in RankMath settings

#787300
  • Resolved Charlie Kirby
    Rank Math free

    None of my custom post types are shown in the RankMath Titles & Meta or Sitemap settings screens.

    The post types are set to public and they do show when going through the RankMath setup wizard but not after this point.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I’m sorry to hear about the issue you are facing with Rank Math settings not displaying your custom post types. If your custom post types are not showing in the Titles & Meta or Sitemap settings screens, there are a few things you can check:

    1. Check Post Type Visibility: Ensure that your custom post types are set to “public” in the WordPress settings. If they are set to private or hidden, they may not appear in the Rank Math settings.

    2. Refresh Rank Math Settings: Sometimes, refreshing the Rank Math settings can help display the custom post types. You can try deactivating and reactivating the Rank Math plugin to see if the custom post types appear.

    3. Re-run Setup Wizard: If your custom post types appeared during the setup wizard but disappeared afterward, you can try re-running the setup wizard. This might help re-detect and display your custom post types in the Rank Math settings.

    If after trying these steps, the issue persists, please feel free to reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for bringing this concern to our attention. We appreciate your patience as we work to resolve this issue for you.

    Best regards.

    Sources:
    General Tab in Meta Box of Rank Math SEO Plugin
    Is Rank Math Compatible With Crocoblock? » Rank Math
    Why Rank Math’s Meta Box is Not Showing? » Rank Math
    We Detected New Post Type(s) » Rank Math

    Hello,

    Thank you for contacting support.

    If the post types were not registered correctly you might need to force them into our plugin settings by modifying the same filter we use to show the Elementor Templates as shown here: https://rankmath.com/kb/enable-rank-math-on-elementor-templates/

    Having said that, given that they are public CPTs they should be automatically detected so if you could share the code being used to create those so we can test it locally it would also help us check whether there’s something wrong with the CPT or the detection from our plugin.

    Looking forward to hearing back from you.

    Charlie Kirby
    Rank Math free

    I’d already tried the rank_math/excluded_post_types filter and it still didn’t work.

    However I then used the filter to dump all the post types RM thinks it should be showing e.g.

    add_filter( 'rank_math/excluded_post_types',function( $post_types) {
         var_dump($post_types);
         return $post_types;
    }, 11 );

    This output led me to discover the priority of the init action I was using was too late. I’ve changed the priority and everything works now.

    Thanks

    Hello,

    We are happy that you were able to pinpoint the issue.

    If you have any other questions in the future don’t hesitate to get in touch.

    We are here to help!

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

The ticket ‘Custom post types not shown in RankMath settings’ is closed to new replies.