Can a folder outside of the WordPress directory but still on the server be accessed through WordPress?
I can successfully access files inside my theme folder but I am trying to access a folder full of images outside of the WordPress folder.
What changes need to be made?
$home_directory = site_url();
$home_uri = home_url();
$vendorLogo = $home_uri. '/clientimages/directory/logo' . $vendor->acctno . '.png';
if ( file_exists( $home_directory . $vendorLogo ) ) {
echo '<br>';
printf( '<img class="vendorImage" src="%s"/>', esc_url( $home_uri . $vendorLogo ) );
}