I am encountering a strange problem in wordpress as the ‘id’ attribute gets disappeared from the ” after saving page in wordpress.
This means if I try to save ” in a page then after save it shows ”.
I don’t get a clue to fix this issue.
So please help me in sorting out this problem as soon as possible.
Thanks in advance.
The problem and solution are described in detail here: http://wordpress.org/support/topic/wp_update_post-strips-css-id-attribute?replies=7
In short, this is due to WordPress’ KSES module, which according to WordPress,
According to the post, one of the contributors solved this problem by “inserting the following code just before the call to
wp_update_post
.”For a global solution, make sure to include: