Making New Variables

  • Great plugin Guys!

    I want to ask is there a way I can add new variables to the list of available ones?

    Example: I would like to have a Variable for all Media Descriptions or Alt Text, so that this text can be used as a part of the Description or Title as needed (this could then be linked to the Featured Image per Page too).

    How could I do this?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Hi Matthew,

    Thanks for the follow up.

    This code will only work on the frontend for the attachments page since this page does not return the post id that is required to work on the backend, the $_GET[‘post’] will return the attachment id and thus will not work for this particular snippet.
    I would suggest that you create a new variable for this page with this info.

    I hope this info helps. Thank you.

    Do you mean a new variable for the Rank Math options or in the Media > Library area?

    HI Matthew,

    Thanks for the question.

    You can create a unique variable for usage on the Media > Library page.

    I hope this info helps. Thank you.

    Ok great, Thanks!!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 16 through 20 (of 20 total)

The ticket ‘Making New Variables’ is closed to new replies.