Tag Info

Hot answers tagged

2

From the WP-CLI documentation about wp post delete: wp post delete $(wp post list --post_type='attachment' --format=ids) See wp post list for additional information.


2

You should check for the special characters in url, sometimes url structures may contain special characters like space, &, ' . use str_repalce to replace known special characters or urlencode. media_sideload_image works properly with JPG as well so either url contains special characters. If you can access image through url there is not a permission ...


1

Found the problem. It was a problem with my host, in the path the ID3 folder name was uppercase, while on the server for some reason it was lowercase, this is why it didn't find it.



Only top voted, non community-wiki answers of a minimum length are eligible