Added some compatibility for WPML

Still more to do.