Created
July 16, 2014 21:59
-
-
Save trepmal/e19fdbec2fbb47b12fab to your computer and use it in GitHub Desktop.
wp media regenerate: only featured images of sticky posts
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
# regen only featured images of sticky posts | |
wp media regenerate $(wp eval 'foreach( wp_parse_id_list( get_option("sticky_posts") ) as $id ) { echo get_post_thumbnail_id($id). " "; }') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment