• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Logo

impressive pages: Webdesign und eCommerce

  • Home
  • Blog
  • Hosting
  • Contact
Start » Blog » Regenerate thumbnails in WordPress via WP-CLI

Regenerate thumbnails in WordPress via WP-CLI

22. December 2021 Leave a Comment

Sometimes it is necessary to regenerate thumbnails or the images in smaller resolutions. This is necessary, for example, if you have changed the resolution values for the step sizes under Settings -> Media.

There are a number of plugins that do this for you, e.g. Regenerate Thumbnails . However, if you do not want to install a plug-in for this, there is an easy option via WP-CLI .

We initiate regeneration with the following command:

wp media regenerate

Now you have to confirm with yes via the console. To anticipate the question, there is the parameter –yes :

wp media regenerate ­­--yes

That’s it! Now we can watch the progress in the console output. By the way, WP-CLI can be used wonderfully in our hosting packages. Copy WP-CLI onto it, log in via SSH and use WP-CLI.

With WP-CLI, many tasks, such as time-controlled updates or backups, can be automated. Feel free to contact me, I would be happy to support you.

Filed Under: development, WordPress

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Search

Recent Posts

  • WooCommerce: Show free shipping only
  • Remove wrapper DIVs (.wrap) in Genesis
  • Remove the number of products in the category list from the category name
  • Change the number of similar products in WooCommerce
  • Genesis Visual Hook Guide

Categories

  • development
  • Genesis framework
  • Google Search Console
  • mobile
  • SEO
  • Uncategorized
  • Web hosting
  • WooCommerce
  • WordPress

Archives

  • May 2022
  • January 2022
  • December 2021
  • imprint
  • Data protection

Footer

!pages
Heinrich Franz
Wilhelm-Martin-Str. 4
76356 Weingarten (Baden)
instagram
+49 160 85 40 725
info@impressive-pages.de

In my Blog I publish articles about WordPress, Genesis framework und SEO.

© 2022 impressive pages

  • Deutsch