Wp-cli: Media regeneration doesn't work with multisites

Created on 17 Oct 2016  路  3Comments  路  Source: wp-cli/wp-cli

Working with a multisite, the structure of the uploads folder in wp-content is

`wp-content/uploads/sites/_site_number_/_date_ like this:

image

However, when using media regen, it only finds the images in 2016 in upload and ignores the other 5000 images in the multisite install.

Can we define where this should be point at to regen?

media media-regenerate unconfirmed

Most helpful comment

Actually it's --url=

wp media regenerate --url='http://demo.dev/deepthought

All 3 comments

Can we define where this should be point at to regen?

wp media regenerate only applies to an individual site on the WordPress multisite instance.

To designate which site you'd like to run wp media regenerate against, you can use the --url=<url> param.

Fantastic, running wp media regenerate -url='http://demo.dev/deepthought worked exactly how it should. Only 5000 images remaining!

Actually it's --url=

wp media regenerate --url='http://demo.dev/deepthought

Was this page helpful?
0 / 5 - 0 ratings

Related issues

despecial picture despecial  路  3Comments

jacklenox picture jacklenox  路  3Comments

jjtroberts picture jjtroberts  路  3Comments

NateWr picture NateWr  路  3Comments

JOduMonT picture JOduMonT  路  3Comments