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:
-
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.
-
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 );
-
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.