Getting URL to image folder on localhost
-
I have a class and I am declaring a file path. It won’t work on my local host.
$this->imgLink = get_stylesheet_directory_uri() . "/uploads/images/";
It returns :
http://localhost/http://localhost/foldername/wp-content/themes/theme/uploads/productImages/image.jpg
- The topic ‘Getting URL to image folder on localhost’ is closed to new replies.