WordPress removes IDs from my posts/pages whenever I try to 'Preview Changes'. Why is this happening, and is there any way to fix it?
WordPress removes IDs from my posts/pages whenever I try to 'Preview Changes'. Why is this happening, and is there any way to fix it?
Removes what ids from where?
From the content of the post in HTML editor. For example, <div id="test" class="test"></div> would be formatted to <div class="test"></div>
Are you switching editing tabs?
Nope, not switching editing tabs, I've disabled them.
This problem is only experience by a different user, I've tried logging into their account, which is listed as an admin, and I get the same problem. The editor just removes all ids whenever they try to edit page.
I don't seem to have the issue with editors but I do with revisors (using Revisionary plugin).
Workaround: You can get away with using classes for some reason.
You must log in to post.