This has little to do with WordPress, but anyway, in your template you can grab the directory structure with scandir
:
$report_files = scandir('/reports');
Now you have array of files and folders that you can manipulate ate will.
Related Posts:
- Rename UPLOADS folder with custom WP_CONTENT_DIR
- Creating a searchable A-Z listing of hundreds of companies/services
- Could not create directory. /var/www/html/wp-content/plugins/PLUGIN_NAME/
- Outputting Page Content in Two Places
- Hide Login information in Account settings in Buddy Boss
- How do you modify the WordPress directory structure?
- Programmatically (PHP) get the nr. of items in the primary navigation menu
- URLs and navigation in custom themes
- Add clickable arrows to parent menu items with children elements e.g. with
- How to wrap the list with custom class using wp_nav_menu?
- Integrate wordpress into index page
- How can I stop access of unregistered user in wp-content/uploads directory without using .htaccess file?
- Sticky menu for WP custom menubars
- Position a hard-coded menu item
- How to add active state to the navigation links?
- WordPress in a Subdirectory
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- How to setup a membership system in WordPress?
- Customize Widget Navigation
- Custom menu not showing even though it shows as being registered?
- How to get Previous Visited Page Information
- Current menu item highlights wrong
- Can’t do a src to node modules folder
- Problems with running a 2nd installation of WordPress on my domain?
- Hosing a website within a WordPress directory/folder
- remove or hide Link Relationship (XFN) form Menus tab
- Multiple Owl Carousels on the same page with navigation problem
- Having a forum in a subfolder
- removing extra mobile menu from the header
- Custom Menu (only showing direct cildren) ACF not showing
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- Is it possible to change the attributes of a registered style or script before it fires?
- how to change “published date” format on edit.php (Posts page)?
- How to change submit button value in comment from “Post Comment” to “Send”
- Getting rid of the #038; when string replacing content
- Querying multiple WordPress custom fields with AND qualifier
- WordPress custom post types breaks permalink on theme reinstall
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- Add custom column to Users admin panel with Types user custom fields?
- woocommerce Add custom field set like billing fields
- Adding action to save_post, post needs to be saved twice for function to work
- Calling a php file from a javascript file in wordpress
- 1 bit audio player
- Outputting posts from post id´s in variable
- Auto redirect after session expire, but only for one user
- Add ‘Creator’ User Meta when adding user
- Auto login after wordpress installation
- Determining What Content Gets Displayed
- Truncating varying lengths of information
- How to get pages id in array in get_pages?
- Access post meta in future_to_publish function
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- custom meta box for page default template
- How to host 2 subdomains as lookalike destinations under one master domain?
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- Custom Login Process
- How could I verify whole WP directory before/after working with a freelancer? [closed]
- How to customize
- Modify files without losing customization after updates
- Determine if action was executed in functions
- Extending core class in plugin
- Is it possible to make wordpress LMS
- Saving contact form 7 data into custom Table
- Hiding Short Description in Shop Page, WooCommerce
- Media Upload not working after hiding some elements from functions.php
- Is it possible to rename a customizer control heading?
- How to add WordPress JS Script Links
- Create Unique ID for user
- Customizing the gallery of the post correctly
- Will WordPress updates remove Gutenberg Additional Classes?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- Multiple header style under meta box
- Show products per page drop down
- When developing WordPress plugin, is it a good idea to create my class object by hooking to existing class constructor?
- Static Page, need Last and Next links at the bottom
- Client viewing before deployment
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Autoloading Classes in Plugins
- How to use a custom playlist template:
- Run a welcome tour after multisite creation?
- Multisite – Getting Meta query to select from wp_2 tables
- How to compare number with id of post in certain category
- WordPress Inline Style missing
- Need to over ride a !important from the index file
- how to hard link to the posts page?
- Ordering a specific post type
- Header image doesn’t show up on page
- How to get name and email value from a custom form and add it to campaign monitor subscriber list?
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- “Static” pages within a theme
- Assign classes to Custom fields
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Prevent posts from being published if the ‘Uncategorized’-category or no category is selected
- Post interior margin in twenty eleven theme