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.
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.