Path incorrect as custom uploads directory location with Bedrock
-
I’m trying our your plugin but it’s looking in the wrong directory for images. I’m building a site that uses Bedrock:
https://github.com/roots/bedrock
which has WordPress in it’s own directory (‘/wp’) and the wp-content directory (including uploads) outside of it (‘/app/uploads’). It defines ABSPATH to as the path to the directory WordPress is in (‘/var/www/web/wp/’).
So in your picture fill method when you build the path to the image from the URL it’s incorrect:
You’re plugin is assuming the uploads directory is in the same directory as WordPress.
- The topic ‘Path incorrect as custom uploads directory location with Bedrock’ is closed to new replies.