Hello,
We apologize for the issue you are facing with the custom field not showing in the Rank Math UI. It seems that while the custom field is working correctly on the front end and in the page source, it is not being recognized in the Rank Math interface, which can indeed affect your SEO score calculations.
Here are a few steps you can take to troubleshoot this issue:
-
Check Meta Box Visibility: Ensure that the Rank Math meta box is enabled for the post type you are working with. If you are using the Classic Editor, go to Screen Options at the top-right of your screen and make sure the Rank Math SEO checkbox is checked.
-
Custom Field Priority: If you have multiple meta boxes, you may need to adjust the priority of the Rank Math meta box. You can add the following filter to your theme’s functions.php
file:
add_filter( 'rank_math/metabox/priority', function( $priority ) {
return 'low';
});
This will help Rank Math recognize your custom fields better.
-
Recheck Custom Field Name: Double-check that the field name you are using in %customfield(field-name)%
matches exactly with what you have set in JetEngine. Any discrepancies can cause it not to display.
-
Clear Cache: If you are using any caching plugins, clear your cache to ensure that you are seeing the most up-to-date version of your post.
If these steps do not resolve the issue, we recommend replying to your ticket so that a human agent from our support team can assist you further. Please include your site URL in your reply for more effective troubleshooting.
Thank you for raising this concern, and we hope to help you resolve it soon!
Sources:
Is Rank Math Compatible With Crocoblock? » Rank Math
Why Rank Math’s Meta Box is Not Showing? » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
Please note that you’ll have to replace the field-name
with the name of your custom field. If you use the field-name
, Rank Math will not be able to fetch the value.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello.
Yes, too confirm this field-name was amended correctly to tool_seo_tagline to match the meta key from JetEngine, and the issue is present.
Thanks, Adam.
Hello,
If you’re using JetEngine, the %customfield%
may not work as expected so you’ll have to create a custom variable.
You can follow the example filter code below:
add_action( 'rank_math/vars/register_extra_replacements', function(){
rank_math_register_var_replacement(
'tool_seo_tagline', [
'name' => esc_html__( 'Prezzo Veicolo', 'rank-math' ),
'description' => esc_html__( 'Prezzo Veicolo description', 'rank-math' ),
'variable' => 'tool_seo_tagline', /* the actual variable: %tool_seo_tagline% */
'example' => 'tool_seo_tagline_call_back',
],
'tool_seo_tagline_call_back'
);
});
function tool_seo_tagline_call_back(){
global $post;
if ( function_exists('jet_engine') ) {
$field_value = jet_engine()->listings->data->get_meta('tool_seo_tagline', $post->ID);
return esc_html( wp_strip_all_tags( $field_value ) );
} else {
$field_value = get_field('tool_seo_tagline', $post->ID);
return $field_value;
}
}
You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/
After applying the filter code, you’ll be using the variable name %tool_seo_tagline%
instead.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hello.
Thank you for this reponse. Having updated this as you noted, I received a critical error across multiple of my pages. Having double checked the code all was as it should be.
Also, here is a screenshot of how the RankMath UI looked, still not 100%: https://prnt.sc/g0cV4Fe_ig7P
Hello,
Can you please share the error message/log you received?
Looking forward to hearing back from you.
Hello, there is no error message, or error log. It just does not show in the Rank Math UI, and the SEO score also shows incorrectly.