-
Hello RankMath Team,
I’m building a manga site. Your plugin is incredible, but I don’t know how to insert chapter number into meta title.
I tried to insert %chapter% to manga meta title but It is not work. But It ‘s working fine with Yoast SEO.
Can you tell me know how to do that plz ?
Thank you 🙂
-
Hello,
Thank you for contacting Rank Math today.
If your chapters are displayed in different pages you can use %page%.You can also add the custom variable %chapter% by customizing the following filter and adding it to your theme functions.php:
/** * 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()' ); }); //create your custom_variable_callback_function
Looking forward to helping you. Thank you.
​​​​​​
Hi Michael,
Thank you for your support.
I tried your way but It is still not working.
I checked around and they said that my theme is probably optimized for Yoast SEO only.
I used Madara theme for Manga site 🙂
Have a nice day ! ^__^
Hello,
We are sorry to hear that.
You can ask them to create a similar integration for Rank math as they did with Yoast. We have a content analysis API to integrate themes/plugins to Rank math which they can check out.
If you have any further question(s), please let us know.
Thank you.
You must be logged in to reply to this ticket.