Need fast help in Rankmath custom Variable – it it affects my SEO :(

#775521
  • Resolved Anonymous
    Rank Math free

    Hello,

    I have done the rank-math.php in my child folder and did your “add_action(‘rank_math/vars/register_extra_replacements’,” – function to get a “telenummer” variable for our SEO Description.

    In the Backend it works everything fine. But in the live output of the Website it just says “array” instead of the phone number we placed for the Variable.

    This infects our SEO output and we could need some quick help on that. Hopefully. Maybe I did something wrong on the function but PLEASE help us, we have over 200 Sites that use that Variable in SEO Description.

    I attached The problem here:

    https://ibb.co/Sc9Md6m
    https://ibb.co/2yBGNXK
    https://ibb.co/RbZZ01K

    You see, that in our html Source of the websites, the variable is not set correctly and it just says “array”. Hopefully you can help.

    I also attached Elementor System Info, that might help if any plugin is there that do problems.
    But I already tried to deactivate the caching Plugin and it doesnt help 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the custom variable “telenummer” in Rank Math affecting your SEO output. From your description, it seems like the variable is displaying as “array” instead of the phone number you intended.

    To resolve this issue, it appears that there might be an error in how the variable callback function is handling the output. The callback function should return the actual value of the variable, but it seems to be returning an array instead.

    To ensure the correct output of the “telenummer” variable, please double-check the callback function associated with it in your code snippet. Make sure that the function is correctly retrieving and returning the phone number value.

    If you need further assistance or if you are unsure about how to correct this issue, please provide us with the code snippet you used for registering the “telenummer” variable, including the callback function. This will help us identify any potential issues and provide you with a solution.

    In the meantime, we recommend reviewing the callback function associated with the “telenummer” variable to ensure it returns the phone number value correctly.

    Thank you for bringing this to our attention, and we appreciate your patience as we work to resolve this issue promptly.

    If you encounter any further difficulties or need additional assistance, please feel free to provide more details or code snippets for us to assist you effectively.

    Sources:
    Using Variables in the SEO Title and Description » Rank Math
    How to Make Your Theme Rank Math Compatible » Rank Math
    How to Make Your Theme Rank Math Compatible » Rank Math
    General Tab in Meta Box of Rank Math SEO Plugin
    Using Variables in the SEO Title and Description » Rank Math

    Hello,

    We’re delighted to hear that this issue has been resolved. We appreciate your feedback.

    This ticket will be closed now, but if you ever have another question or need any help in the future, please don’t hesitate to create a new forum topic. We’ll be more than happy to assist you again.

    Thank you for choosing Rank Math and have a wonderful day!

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘Need fast help in Rankmath custom Variable – it it affects my SEO :(’ is closed to new replies.