How to Add Custom Fields to RankMath Meta Tags

#93959
  • Resolved Acehsc
    Rank Math free

    Hi Team,

    I just switched to Rankmath from Yoast Seo Premium, I need help with adding custom fields to meta.

    So I have around 5,000 custom type pages (using the PODS plugin)

    Like Yoast gave me this URL for adding the custom fields for their plugin. https://metabox.io/add-custom-fields-to-yoast-seo-meta-tags/

    I have attached a screenshot URL, how my metadata was structured for custom Taxonomies

    Following are my custom Taxonomies;
    – resource_type
    – grade
    – subject
    – year_uploaded

Viewing 2 replies - 1 through 2 (of 2 total)
  • UPDATE:
    https://ibb.co/Yc68cWB

    after browsing the internet regarding this issue, (check screenshot) it’s no inputting any data, like I tried tittle & description both arent generating data

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Were using the option to register extra variables? If so you can add your custom variables to Rank math titles and meta dropdown by customizing the following filter and adding it to your active them functions.php file:

    
    /**
     * Action: 'rank_math/vars/register_extra_replacements' - Allows adding extra variables.
     */add_action( 'rank_math/vars/register_extra_replacements', function(){
     rank_math_register_var_replacement(
     'custom_variable_slug',
     [
     'name'        => esc_html__( 'Custom variable name.', 'rank-math' ),
     'description' => esc_html__( 'Custom variable description.', 'rank-math' ),
     'variable'    => 'custom_variable_slug',
     'example'     => 'custom_variable_callback()',
     ],
     'custom_variable_callback()'
     );
    });
    

    Looking forward to helping you. Thank you.

    ​​​​​​​

    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 ‘How to Add Custom Fields to RankMath Meta Tags’ is closed to new replies.