<?php if (!defined(ABSPATH)) { $pagePath = explode('/wp-content/', dirname(__FILE__)); include_once(str_replace('wp-content/', '', $pagePath[0] . '/wp-load.php')); } $wordpress_upload_dir = wp_upload_dir(); // $wordpress_upload_dir['path'] is the full server path to wp-content/uploads/2017/05, for multisite works good as well // $wordpress_upload_dir['url'] the absolute URL to the same folder, actually we do not need it, just to show the link to file $i […]