Hello,
We apologize for the issue you are facing with Carbon Fields integration in Rank Math. Currently, there isn’t a built-in feature in Rank Math to automatically recognize and analyze Carbon Fields data as part of the main content for SEO evaluation.
However, you can integrate Carbon Fields with Rank Math using the Content Analysis API. This allows you to register custom fields present in your theme or plugin with Rank Math, enabling it to analyze the data in those fields. Here’s a brief overview of how to do this:
-
Create a .js File: Create a new JavaScript file in your plugin or theme and add the necessary code to integrate with the Rank Math Content Analysis API.
-
Use Filters: You can use filters to analyze the title and content from Carbon Fields. For example:
wp.hooks.addFilter( 'rank_math_title', 'plugin-name', callback_function_to_fetch_title );
wp.hooks.addFilter( 'rank_math_content', 'plugin-name', callback_function_to_fetch_content );
For detailed instructions on how to implement this, you can refer to the Rank Math Content Analysis API documentation.
If you’re looking for a more comprehensive setup or assistance, we recommend considering our professional setup service, which ensures that your plugin is configured correctly according to the latest SEO standards. You can find more information about this service at Rank Math Services.
Thank you for raising this concern, and we hope this helps you integrate Carbon Fields with Rank Math effectively! If you have further questions or need assistance, please reply to this ticket, and a human agent will assist you.
Sources:
Rank Math Content Analysis API for Theme & Plugin Developers
Thank you for the explanation!
Could you please provide more specific examples of how to integrate Carbon Fields fields with Rank Math using the Content Analysis API? It would be really helpful to see a sample implementation using a single field — for example, a field named section_title.
Hello,
If the data is coming from the core custom fields of your posts, then you can add the list of custom fields used in the posts, one per line, in Rank Math > Titles & Meta > [Post Type]
Rank Math will look for the data inside these posts and include them for on-page SEO analysis to give you more relevant on-page SEO recommendations.
Looking forward to helping you.
No, I use Carbon Fields Plugin (https://carbonfields.net). Not core custom fields.
Hello,
Our plugin utilizes the Custom Fields option to include only WordPress custom fields in the analysis, and we also have the ACF module to read ACF fields.
However, for any other custom implementation, you’ll need to ask the plugin developers to include them with the help of our Content Analysis API: https://rankmath.com/kb/content-analysis-api/
Don’t hesitate to reach out 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.