-
Hey there!
I’ve just spent a few hours trying and largely failing to get one aspect of my own tiny plugin to be compatible with RankMath. I use RM all the time on my site.
My issue is simple: when my plugin saves a post, the OpenGraph, ‘meta’ Title, and Meta Description fields in RankMath do not update. I can’t figure out the RM hooks from your dev document that could help this.
What I’ve tried:
– to pull in the relevant fields in PHP, but your fields only have IDs, not name attributes, so are hard to read. That, and the meta description field, for example appears inaccessible on document load.
– to add a name attribute dynamically, using JavaScript, so that I could read the fields (e.g.document.getElementById('rank-math-editor-description')) – but that does not exist except during the editing of those fields. Maybe this is because of your JSON?I don’t want to change anything in your data. Literally, I want to make sure, when
document.getElementById('post').submit();is invoked, that the data in the RM panel is saved as well. And I can’t find what to trigger in my plugins code to make that happen.Hope you can help!
Thanks.
The ticket ‘Help with Plugin Compatibility’ is closed to new replies.

