-
-
Save anil3a/06c08bcdf262a1c0efe1990b44ae0583 to your computer and use it in GitHub Desktop.
Wordpress - Import Posts - Assign to Author
This file contains hidden or 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