/ Published in: JavaScript

Go through all the authors of a wordpress import and make them the same as the previous authors (Wordpress 3.3).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(function($){ $('#authors').children('li').each(function(i,el) { var nm = $(this).children('strong').text(); $(this).children('input').first().val(nm); }); }(jQuery));
Comments
