Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

    Best way I can think of would be to utilize the callback we have set on the save_post action hook.

    wds_set_media_as_featured_image( $post_id, $post );

    You’d need to query for all the posts you have, pass in the ID, and then also the $post object, since the function does use both.

    Just drop the function in a foreach loop that you set up. I’d also recommend checking for an existing featured image already, unless you don’t mind replacing it.

    Thread Starter Brent

    (@brentkrueger)

    Thanks Michael,

    I ended up doing just this, writing a query (using mainly borrowed code), and updating that way. I will try and remember to share it here so that others might be able to benefit from it.

    thanks

    Can we make this a requested feature for the next version? ??

    Plugin Support Michael Beckwith

    (@tw2113)

    The BenchPresser

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Way to mass update existing posts?’ is closed to new replies.