How Do I Set Folder For Resized Thumbnails?
-
I wrote an import app to create posts with several attached images. The files are already on the server under wp-content like so:
wp-content/mygalleries/gal_a wp-content/mygalleries/gal_b wp-content/mygalleries/gal_c
Just to be clear… the source images are already in gal_a, gal_b, gal_c.
When I call
$metadata = wp_generate_attachment_metadata( $attach_id, $filepath );
…it properly generates the various thumbnails HOWEVER, it puts them in gal_a, gal_b, gal_c. To avoid confusion, I want to place the wp generated thumbnails in a subfolder like so:
wp-content/mygalleries/gal_a/thumbs wp-content/mygalleries/gal_b/thumbs wp-content/mygalleries/gal_c/thumbs
How do I ‘tell’ wp_generate_attachment_metadata( $attach_id, $filepath ) to look for the source file in gal_a, but put the generated imgs in gal_a/thumbs?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How Do I Set Folder For Resized Thumbnails?’ is closed to new replies.