Created
July 20, 2013 06:25
-
-
Save spsaucier/6044070 to your computer and use it in GitHub Desktop.
Wordpress - Import Posts - Assign to Author
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#authors > li').each(function(){ | |
var textstring = $(this).find('strong').text().split(" ("); | |
console.info(textstring[0]); | |
$(this).find('select[name^=user_map] option').filter(function() { | |
return $(this).text() == textstring[0]; | |
}).prop('selected', true); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Life Saver, Thousand Thanks...