R6 – R18 – Posts for Images to Attach to – Finishing (subfolder / no attach)

– TRACK WHERE WP IMPORT “KILLED”
– STILL HAVE: JPG / WEBP
– **REMOVE IMAGES FROM SUB FOLDERS** when jpg / webp starts

Then see about WPTables to match up images with posts?

1. still working through .pngs only in 2020 / 09
2. Once PNGs are done – do same thing for JPG
3. then webp


1. remove all thumbnails –

wp media regenerate --only-missing

You could also use find . -name "*-*x*.*" | xargs rm -f to delete all of the thumbnails from your uploads folder

ROUND 5 IMPORT SCRIPT (should skip sub folder)

IT ALSO GOES BY ALPHA – BUT – If there are uppercase letters – it grabs those first – above the alphabetical order –

WITH POST TO ATTACH: wp media import ~/public_html/know/img/2020/09/*.png –post_id=102563 –preserve-filetime (did not help with the duplicate image issue)

wp media import ~/public_html/know/img/2020/09/*.png –preserve-filetime

wp media import ~/public_html/know/img/2020/09/*.jpg –preserve-filetime

wp media import ~/public_html/know/img/2020/09/*.jpeg –preserve-filetime

wp media import ~/public_html/know/img/2020/09/*.gif –preserve-filetime

wp media import ~/public_html/know/img/2020/09/*.svg –preserve-filetime

wp media import ~/public_html/know/img/2020/09/*.webp –preserve-filetime


ROUND 5


ROUND 6


ROUND 7


ROUND 8


ROUND 9


ROUND 10


ROUND 11


ROUND 12

– still working on PNGs –


ROUND 13


ROUND 14


ROUND 15


ROUND 16


ROUND 17


ROUND 18