get_bloginfo('template_directory')
returns a URI and I believe glob
works with paths so try:
$dir = get_theme_root() . "/documents/*";
foreach(glob($dir) as $file) {
echo $file;
}
get_bloginfo('template_directory')
returns a URI and I believe glob
works with paths so try:
$dir = get_theme_root() . "/documents/*";
foreach(glob($dir) as $file) {
echo $file;
}