Enable the Post Type for RankMath Instant Indexing

#880745
  • Resolved Anonymous
    Rank Math free

    Currently, the affiliate Post Type isn’t available as an option for RankMath Instant Indexing.

    I am using rehub theme and there is a post type affiliate store which is detected in the main RM plugin, https://prnt.sc/hr0sgJcFNTD3 . I need it to be available in Instant indexing as well.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, we apologize for the issue you are facing with enabling the Pretty Links Post Type for Rank Math Instant Indexing. To enable a custom post type like the affiliate store in your rehub theme for Instant Indexing, you will need to add a filter to your theme’s rank-math.php file. Here’s how you can do it:

    1. Create or Edit the rank-math.php File: If you haven’t already created a rank-math.php file in your theme’s directory, you can create one in the path wp-content/themes/theme-name/rank-math.php, where theme-name is your active theme.

    2. Add the Filter Code: Add the following code snippet to the rank-math.php file:

      /**
      * Filter to enable Rank Math SEO on custom post types
      */
      add_filter( 'rank_math/excluded_post_types', function( $post_types ) {
         $post_types['affiliate_store'] = 'affiliate_store'; // Replace with your post type
         return $post_types;
      }, 11 );
    3. Save Changes: Make sure to save the changes after adding the code.

    This will allow the affiliate store post type to be recognized by Rank Math for Instant Indexing. If you have any further questions or need assistance, please feel free to reply to this ticket, and a human agent from the Rank Math Support team will assist you further.

    Thank you for raising this concern!

    Sources:
    Enable Rank Math SEO on Elementor Templates » Rank Math

    Hello,

    Thank you for contacting support.

    The screenshot shows that the “Affiliate Store” is a taxonomy and not a post type, so that would explain why it’s not showing in the Instant Indexing options, as that only works with post types.

    Don’t hesitate to get in touch if you have any other questions.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Enable the Post Type for RankMath Instant Indexing’ is closed to new replies.